/*
 * ov23850.c - ov23850 sensor driver
 *
 * Copyright (c) 2015-2017, NVIDIA CORPORATION, All Rights Reserved.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms and conditions of the GNU General Public License,
 * version 2, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http:
 */

#include <media/camera_common.h>

#ifndef __OV23850_I2C_TABLES__
#define __OV23850_I2C_TABLES__

#define OV23850_TABLE_WAIT_MS	0
#define OV23850_TABLE_END	1
#define OV23850_MAX_RETRIES	3
#define OV23850_WAIT_MS		3

#define ov23850_reg struct reg_8

static ov23850_reg ov23850_start[] = {
	{ 0x0100, 0x01 }, /* mode select streaming on */
	{ OV23850_TABLE_END, 0x00 }
};

static ov23850_reg ov23850_stop[] = {
	{ 0x0100, 0x00 }, /* mode select streaming off */
	{ OV23850_TABLE_END, 0x00 }
};

static ov23850_reg tp_colorbars[] = {
	{0x0600, 0x00},
	{0x0601, 0x02},

	{OV23850_TABLE_WAIT_MS, OV23850_WAIT_MS},
	{OV23850_TABLE_END, 0x00}
};

static ov23850_reg mode_5632x4224_20fps[] = {
	{0x0316, 0x1e},
	{0x0317, 0x00},
	{0x0318, 0x03},
	{0x031c, 0x01},
	{0x031d, 0x02},
	{0x031e, 0x09},
	{0x2b05, 0x02},
	{0x2b06, 0x87},
	{0x2b07, 0x01},
	{0x2b08, 0xa8},
	{0x0320, 0x02},
	{0x3002, 0x00},
	{0x300f, 0x11},
	{0x3010, 0x01},
	{0x3012, 0x41},
	{0x3016, 0xd2},
	{0x3018, 0x70},
	{0x3019, 0xc3},
	{0x301b, 0x96},
	{0x3022, 0x0f},
	{0x3023, 0xb4},
	{0x3031, 0x91},
	{0x3034, 0x41},
	{0x340c, 0xff},
	{0x3501, 0x12},
	{0x3502, 0xa6},
	{0x3503, 0x00},
	{0x3507, 0x00},
	{0x3508, 0x00},
	{0x3509, 0x12},
	{0x350a, 0x00},
	{0x350b, 0x80},
	{0x350f, 0x10},
	{0x3541, 0x02},
	{0x3542, 0x00},
	{0x3543, 0x00},
	{0x3547, 0x00},
	{0x3548, 0x00},
	{0x3549, 0x12},
	{0x354b, 0x10},
	{0x354f, 0x10},
	{0x3601, 0xa4},
	{0x3603, 0x97},
	{0x3604, 0x02},
	{0x3605, 0xf2},
	{0x3606, 0xe8},
	{0x3607, 0x11},
	{0x360a, 0x34},
	{0x360c, 0x13},
	{0x3618, 0xcc},
	{0x3620, 0x50},
	{0x3621, 0x99},
	{0x3622, 0x7d},
	{0x3624, 0x05},
	{0x362a, 0x25},
	{0x3650, 0x04},
	{0x3660, 0xc0},
	{0x3661, 0x00},
	{0x3662, 0x00},
	{0x3664, 0x88},
	{0x3667, 0x00},
	{0x366a, 0x5c},
	{0x366c, 0x80},
	{0x3700, 0x62},
	{0x3701, 0x08},
	{0x3702, 0x10},
	{0x3703, 0x3e},
	{0x3704, 0x26},
	{0x3705, 0x01},
	{0x3706, 0x3a},
	{0x3707, 0xc4},
	{0x3708, 0x3c},
	{0x3709, 0x1c},
	{0x370a, 0x23},
	{0x370b, 0x2c},
	{0x370c, 0x42},
	{0x370d, 0xa4},
	{0x370e, 0x14},
	{0x370f, 0x0a},
	{0x3710, 0x15},
	{0x3711, 0x0a},
	{0x3712, 0xa2},
	{0x3713, 0x00},
	{0x371e, 0x2a},
	{0x371f, 0x13},
	{0x3714, 0x00},
	{0x3717, 0x00},
	{0x3719, 0x00},
	{0x371c, 0x04},
	{0x3720, 0xaa},
	{0x3721, 0x10},
	{0x3722, 0x50},
	{0x3725, 0xf0},
	{0x3726, 0x22},
	{0x3727, 0x44},
	{0x3728, 0x40},
	{0x3729, 0x00},
	{0x372b, 0x00},
	{0x372c, 0x92},
	{0x372d, 0x0c},
	{0x372e, 0x22},
	{0x372f, 0x91},
	{0x3732, 0x01},
	{0x3733, 0xd0},
	{0x3730, 0x01},
	{0x3731, 0xc8},
	{0x3744, 0x01},
	{0x3745, 0x24},
	{0x3746, 0x00},
	{0x3747, 0xd0},
	{0x3748, 0x27},
	{0x374a, 0x4b},
	{0x374b, 0x44},
	{0x3760, 0xd1},
	{0x3761, 0x52},
	{0x3762, 0xa4},
	{0x3763, 0x14},
	{0x3766, 0x0c},
	{0x3767, 0x25},
	{0x3768, 0x0c},
	{0x3769, 0x24},
	{0x376a, 0x09},
	{0x376b, 0x02},
	{0x376d, 0x01},
	{0x376e, 0x53},
	{0x376f, 0x01},
	{0x378c, 0x08},
	{0x378d, 0x46},
	{0x378e, 0x14},
	{0x378f, 0x02},
	{0x3790, 0xc4},
	{0x3792, 0x64},
	{0x3793, 0x5d},
	{0x3794, 0x29},
	{0x3795, 0x4f},
	{0x3796, 0x43},
	{0x3797, 0x09},
	{0x3798, 0x02},
	{0x3799, 0x33},
	{0x379a, 0x09},
	{0x379b, 0x1e},
	{0x379f, 0x3e},
	{0x37a0, 0x44},
	{0x37a1, 0x00},
	{0x37a2, 0x44},
	{0x37a3, 0x41},
	{0x37a4, 0x88},
	{0x37a5, 0x69},
	{0x37b0, 0x48},
	{0x37b1, 0x20},
	{0x37b2, 0x03},
	{0x37b3, 0x48},
	{0x37b4, 0x02},
	{0x37b5, 0x33},
	{0x37b6, 0x22},
	{0x37b8, 0x02},
	{0x37bc, 0x02},
	{0x37c0, 0x3b},
	{0x37c1, 0xc2},
	{0x37c2, 0x06},
	{0x37c3, 0x06},
	{0x37c5, 0x33},
	{0x37c6, 0x35},
	{0x37c7, 0x00},
	{0x3800, 0x00},
	{0x3801, 0x14},
	{0x3802, 0x00},
	{0x3803, 0x0c},
	{0x3804, 0x10},
	{0x3805, 0x8b},
	{0x3806, 0x0c},
	{0x3807, 0x43},
	{0x3808, 0x16},
	{0x3809, 0x00},
	{0x380a, 0x10},
	{0x380b, 0x80},
	{0x380c, 0x1C},
	{0x380d, 0x20},
	{0x380e, 0x12},
	{0x380f, 0xc6},
	{0x3810, 0x00},
	{0x3811, 0x03},
	{0x3813, 0x06},
	{0x3814, 0x11},
	{0x3815, 0x11},
	{0x3820, 0x00},
	{0x3821, 0x04},
	{0x3834, 0x00},
	{0x3835, 0x04},
	{0x3836, 0x18},
	{0x3837, 0x02},
	{0x382f, 0x84},
	{0x383c, 0xc8},
	{0x383d, 0xff},
	{0x3842, 0x00},
	{0x384b, 0x00},
	{0x3d85, 0x16},
	{0x3d8c, 0x77},
	{0x3d8d, 0x10},
	{0x3f00, 0x52},
	{0x4000, 0x17},
	{0x4001, 0x60},
	{0x4001, 0x60},
	{0x4008, 0x00},
	{0x4009, 0x13},
	{0x400f, 0x00},
	{0x4011, 0xfb},
	{0x4017, 0x08},
	{0x4018, 0x00},
	{0x401a, 0xce},
	{0x4019, 0x18},
	{0x4020, 0x08},
	{0x4022, 0x08},
	{0x4024, 0x08},
	{0x4026, 0x08},
	{0x4028, 0x08},
	{0x402a, 0x08},
	{0x402c, 0x08},
	{0x402e, 0x08},
	{0x4030, 0x08},
	{0x4032, 0x08},
	{0x4034, 0x08},
	{0x4036, 0x08},
	{0x4038, 0x08},
	{0x403a, 0x08},
	{0x403c, 0x08},
	{0x403e, 0x08},
	{0x405c, 0x3f},
	{0x4066, 0x04},
	{0x4051, 0x03},
	{0x4052, 0x00},
	{0x4053, 0x80},
	{0x4054, 0x00},
	{0x4055, 0x80},
	{0x4056, 0x00},
	{0x4057, 0x80},
	{0x4058, 0x00},
	{0x4059, 0x80},
	{0x4202, 0x00},
	{0x4203, 0x01},
	{0x430b, 0xff},
	{0x430d, 0x00},
	{0x4500, 0x72},
	{0x4605, 0x00},
	{0x4640, 0x01},
	{0x4641, 0x04},
	{0x4645, 0x00},
	{0x4800, 0x04},
	{0x4809, 0x2b},
	{0x4813, 0x90},
	{0x4817, 0x04},
	{0x4833, 0x18},
	{0x4837, 0x0A},
	{0x484b, 0x01},
	{0x4850, 0x5c},
	{0x4852, 0x27},
	{0x4856, 0x5c},
	{0x4857, 0x55},
	{0x486a, 0xaa},
	{0x486e, 0x03},
	{0x486f, 0x55},
	{0x4875, 0xf0},
	{0x4b04, 0x80},
	{0x4b05, 0xb3},
	{0x4b06, 0x00},
	{0x4c01, 0xdf},
	{0x4d00, 0x04},
	{0x4d01, 0xf0},
	{0x4d02, 0xb8},
	{0x4d03, 0xf2},
	{0x4d04, 0x88},
	{0x4d05, 0x9d},
	{0x4e00, 0x04},
	{0x4e17, 0x04},
	{0x4e33, 0x18},
	{0x4e37, 0x11},
	{0x4e4b, 0x01},
	{0x4e50, 0x5c},
	{0x4e52, 0x27},
	{0x4e56, 0x5c},
	{0x4e57, 0x55},
	{0x4e6a, 0xaa},
	{0x4e6e, 0x03},
	{0x4e6f, 0x55},
	{0x4e75, 0xf0},
	{0x5000, 0x9b},
	{0x5001, 0x42},
	{0x5002, 0x10},
	{0x5003, 0x01},
	{0x5004, 0x00},
	{0x5005, 0x00},
	{0x501d, 0x00},
	{0x501f, 0x06},
	{0x5020, 0x03},
	{0x5021, 0x00},
	{0x5022, 0x13},
	{0x5061, 0xff},
	{0x5062, 0xff},
	{0x5063, 0xff},
	{0x5064, 0xff},
	{0x506f, 0x00},
	{0x5280, 0x00},
	{0x5282, 0x00},
	{0x5283, 0x01},
	{0x5200, 0x00},
	{0x5201, 0x71},
	{0x5203, 0x04},
	{0x5204, 0x00},
	{0x5205, 0x88},
	{0x5209, 0x00},
	{0x520a, 0x80},
	{0x520b, 0x04},
	{0x520c, 0x01},
	{0x5210, 0x10},
	{0x5211, 0xa0},
	{0x5292, 0x04},
	{0x5500, 0x00},
	{0x5501, 0x00},
	{0x5502, 0x00},
	{0x5503, 0x00},
	{0x5504, 0x00},
	{0x5505, 0x00},
	{0x5506, 0x00},
	{0x5507, 0x00},
	{0x5508, 0x10},
	{0x5509, 0x00},
	{0x550a, 0x10},
	{0x550b, 0x00},
	{0x550c, 0x20},
	{0x550d, 0x00},
	{0x550e, 0x20},
	{0x550f, 0x00},
	{0x5510, 0x00},
	{0x5511, 0x00},
	{0x5512, 0x00},
	{0x5513, 0x00},
	{0x5514, 0x00},
	{0x5515, 0x00},
	{0x5516, 0x00},
	{0x5517, 0x00},
	{0x5518, 0x00},
	{0x5519, 0x00},
	{0x551a, 0x00},
	{0x551b, 0x00},
	{0x551c, 0x00},
	{0x551d, 0x00},
	{0x551e, 0x00},
	{0x551f, 0x00},
	{0x5520, 0x00},
	{0x5521, 0x00},
	{0x5522, 0x00},
	{0x5523, 0x00},
	{0x5524, 0x00},
	{0x5525, 0x00},
	{0x5526, 0x00},
	{0x5527, 0x00},
	{0x5528, 0x00},
	{0x5529, 0x10},
	{0x552a, 0x00},
	{0x552b, 0x10},
	{0x552c, 0x00},
	{0x552d, 0x20},
	{0x552e, 0x00},
	{0x552f, 0x20},
	{0x5530, 0x00},
	{0x5531, 0x00},
	{0x5532, 0x00},
	{0x5533, 0x00},
	{0x5534, 0x00},
	{0x5535, 0x00},
	{0x5536, 0x00},
	{0x5537, 0x00},
	{0x5538, 0x00},
	{0x5539, 0x00},
	{0x553a, 0x00},
	{0x553b, 0x00},
	{0x553c, 0x00},
	{0x553d, 0x00},
	{0x553e, 0x00},
	{0x553f, 0x00},
	{0x5540, 0x00},
	{0x5541, 0x00},
	{0x5542, 0x00},
	{0x5543, 0x00},
	{0x5544, 0x00},
	{0x5545, 0x00},
	{0x5546, 0x00},
	{0x5547, 0x00},
	{0x5548, 0x01},
	{0x5549, 0x00},
	{0x554a, 0x01},
	{0x554b, 0x00},
	{0x554c, 0x02},
	{0x554d, 0x00},
	{0x554e, 0x02},
	{0x554f, 0x00},
	{0x5550, 0x00},
	{0x5551, 0x00},
	{0x5552, 0x00},
	{0x5553, 0x00},
	{0x5554, 0x00},
	{0x5555, 0x00},
	{0x5556, 0x00},
	{0x5557, 0x00},
	{0x5558, 0x00},
	{0x5559, 0x00},
	{0x555a, 0x00},
	{0x555b, 0x00},
	{0x555c, 0x00},
	{0x555d, 0x00},
	{0x555e, 0x00},
	{0x555f, 0x00},
	{0x5560, 0x00},
	{0x5561, 0x00},
	{0x5562, 0x00},
	{0x5563, 0x00},
	{0x5564, 0x00},
	{0x5565, 0x00},
	{0x5566, 0x00},
	{0x5567, 0x00},
	{0x5568, 0x00},
	{0x5569, 0x10},
	{0x556a, 0x00},
	{0x556b, 0x10},
	{0x556c, 0x00},
	{0x556d, 0x20},
	{0x556e, 0x00},
	{0x556f, 0x20},
	{0x5570, 0x00},
	{0x5571, 0x00},
	{0x5572, 0x00},
	{0x5573, 0x00},
	{0x5574, 0x00},
	{0x5575, 0x00},
	{0x5576, 0x00},
	{0x5577, 0x00},
	{0x5578, 0x00},
	{0x5579, 0x00},
	{0x557a, 0x00},
	{0x557b, 0x00},
	{0x557c, 0x00},
	{0x557d, 0x00},
	{0x557e, 0x00},
	{0x557f, 0x00},
	{0x5580, 0x00},
	{0x5581, 0x00},
	{0x5582, 0x00},
	{0x5583, 0x00},
	{0x5584, 0x10},
	{0x5585, 0x00},
	{0x5586, 0x10},
	{0x5587, 0x00},
	{0x5588, 0x38},
	{0x5589, 0x00},
	{0x558a, 0x38},
	{0x558b, 0x00},
	{0x558c, 0x70},
	{0x558d, 0x00},
	{0x558e, 0x70},
	{0x558f, 0x00},
	{0x5590, 0x20},
	{0x5591, 0x00},
	{0x5592, 0x20},
	{0x5593, 0x00},
	{0x5594, 0x00},
	{0x5595, 0x00},
	{0x5596, 0x00},
	{0x5597, 0x00},
	{0x5598, 0x00},
	{0x5599, 0x00},
	{0x559a, 0x00},
	{0x559b, 0x00},
	{0x559c, 0x00},
	{0x559d, 0x00},
	{0x559e, 0x00},
	{0x559f, 0x00},
	{0x55a0, 0x00},
	{0x55a1, 0x00},
	{0x55a2, 0x00},
	{0x55a3, 0x00},
	{0x55a4, 0x00},
	{0x55a5, 0x10},
	{0x55a6, 0x00},
	{0x55a7, 0x10},
	{0x55a8, 0x00},
	{0x55a9, 0x38},
	{0x55aa, 0x00},
	{0x55ab, 0x38},
	{0x55ac, 0x00},
	{0x55ad, 0x70},
	{0x55ae, 0x00},
	{0x55af, 0x70},
	{0x55b0, 0x00},
	{0x55b1, 0x20},
	{0x55b2, 0x00},
	{0x55b3, 0x20},
	{0x55b4, 0x00},
	{0x55b5, 0x00},
	{0x55b6, 0x00},
	{0x55b7, 0x00},
	{0x55b8, 0x00},
	{0x55b9, 0x00},
	{0x55ba, 0x00},
	{0x55bb, 0x00},
	{0x55bc, 0x00},
	{0x55bd, 0x00},
	{0x55be, 0x00},
	{0x55bf, 0x00},
	{0x55c0, 0x00},
	{0x55c1, 0x00},
	{0x55c2, 0x00},
	{0x55c3, 0x00},
	{0x55c4, 0x01},
	{0x55c5, 0x00},
	{0x55c6, 0x01},
	{0x55c7, 0x00},
	{0x55c8, 0x03},
	{0x55c9, 0x80},
	{0x55ca, 0x03},
	{0x55cb, 0x80},
	{0x55cc, 0x07},
	{0x55cd, 0x00},
	{0x55ce, 0x07},
	{0x55cf, 0x00},
	{0x55d0, 0x02},
	{0x55d1, 0x00},
	{0x55d2, 0x02},
	{0x55d3, 0x00},
	{0x55d4, 0x00},
	{0x55d5, 0x00},
	{0x55d6, 0x00},
	{0x55d7, 0x00},
	{0x55d8, 0x00},
	{0x55d9, 0x00},
	{0x55da, 0x00},
	{0x55db, 0x00},
	{0x55dc, 0x00},
	{0x55dd, 0x00},
	{0x55de, 0x00},
	{0x55df, 0x00},
	{0x55e0, 0x00},
	{0x55e1, 0x00},
	{0x55e2, 0x00},
	{0x55e3, 0x00},
	{0x55e4, 0x00},
	{0x55e5, 0x10},
	{0x55e6, 0x00},
	{0x55e7, 0x10},
	{0x55e8, 0x00},
	{0x55e9, 0x38},
	{0x55ea, 0x00},
	{0x55eb, 0x38},
	{0x55ec, 0x00},
	{0x55ed, 0x70},
	{0x55ee, 0x00},
	{0x55ef, 0x70},
	{0x55f0, 0x00},
	{0x55f1, 0x20},
	{0x55f2, 0x00},
	{0x55f3, 0x20},
	{0x55f4, 0x00},
	{0x55f5, 0x00},
	{0x55f6, 0x00},
	{0x55f7, 0x00},
	{0x55f8, 0x00},
	{0x55f9, 0x00},
	{0x55fa, 0x00},
	{0x55fb, 0x00},
	{0x55fc, 0x00},
	{0x55fd, 0x00},
	{0x55fe, 0x00},
	{0x55ff, 0x00},
	{0x5600, 0x30},
	{0x5601, 0x00},
	{0x5602, 0x00},
	{0x5603, 0x00},
	{0x5604, 0x00},
	{0x5605, 0x00},
	{0x5606, 0x00},
	{0x5607, 0x01},
	{0x5608, 0x01},
	{0x5609, 0x01},
	{0x560f, 0xfc},
	{0x5610, 0xf0},
	{0x5611, 0x10},
	{0x562f, 0xfc},
	{0x5630, 0xf0},
	{0x5631, 0x10},
	{0x564f, 0xfc},
	{0x5650, 0xf0},
	{0x5651, 0x10},
	{0x566f, 0xfc},
	{0x5670, 0xf0},
	{0x5671, 0x10},
	{0x567b, 0x40},
	{0x5690, 0x00},
	{0x5691, 0x00},
	{0x5692, 0x00},
	{0x5693, 0x0a},
	{0x5694, 0x80},
	{0x5696, 0x06},
	{0x5697, 0x0a},
	{0x5698, 0x00},
	{0x5699, 0x90},
	{0x569a, 0x15},
	{0x569b, 0x90},
	{0x569c, 0x00},
	{0x569d, 0x50},
	{0x569e, 0x10},
	{0x569f, 0x50},
	{0x56a0, 0x36},
	{0x56a1, 0x50},
	{0x56a2, 0x16},
	{0x56a3, 0x20},
	{0x56a4, 0x10},
	{0x56a5, 0xa0},
	{0x5c80, 0x06},
	{0x5c81, 0x80},
	{0x5c82, 0x09},
	{0x5c83, 0x5f},
	{0x5d04, 0x01},
	{0x5d05, 0x1a},
	{0x5d06, 0x01},
	{0x5d07, 0x1a},
	{0x5d12, 0xf7},
	{0x5d13, 0xdd},
	{0x5d14, 0x97},
	{0x5d15, 0x69},
	{0x5d16, 0x61},
	{0x5d17, 0x5b},
	{0x5d18, 0x62},
	{0x5d19, 0x8d},
	{0x5d1a, 0xdd},
	{0x5d1b, 0xff},
	{0x5d24, 0x00},
	{0x5d25, 0x00},
	{0x5d26, 0x00},
	{0x5d27, 0x0a},
	{0x5d28, 0x80},
	{0x5d2a, 0x00},
	{0x5d2b, 0x90},
	{0x5d2c, 0x15},
	{0x5d2d, 0x90},
	{0x5d2e, 0x00},
	{0x5d2f, 0x50},
	{0x5d30, 0x10},
	{0x5d31, 0x50},
	{0x5d32, 0x10},
	{0x5d34, 0x36},
	{0x5d35, 0x20},
	{0x5d36, 0x90},
	{0x5d37, 0xa0},
	{0x5d38, 0x5c},
	{0x5d39, 0x7b},
	{0x5d1c, 0x00},
	{0x5d1d, 0x90},
	{0x5d1e, 0x00},
	{0x5d1f, 0x50},
	{0x5d20, 0x15},
	{0x5d21, 0x00},
	{0x5d22, 0x10},
	{0x5d23, 0x00},
	{0x5d29, 0xc0},
	{0x3008, 0x01},
	{0x3663, 0x60},
	{0x3002, 0x01},
	{0x3c00, 0x3c},
	{0x3025, 0x03},
	{0x3668, 0xf0},
	{0x3400, 0x04},
	{OV23850_TABLE_END, 0x00},
};

static ov23850_reg mode_5632x4224_8fps_dpcm[] = {
	{0x0303, 0x20},
	{0x0316, 0x1e},
	{0x0318, 0x03},
	{0x031c, 0x01},
	{0x031d, 0x02},
	{0x031e, 0x00},
	{0x2b05, 0x02},
	{0x2b06, 0x87},
	{0x2b07, 0x01},
	{0x2b08, 0xa8},
	{0x0320, 0x02},
	{0x3002, 0x00},
	{0x300f, 0x11},
	{0x3010, 0x01},
	{0x3012, 0x41},
	{0x3031, 0x91},
	{0x3034, 0x41},
	{0x340c, 0xff},
	{0x3501, 0x12},
	{0x3502, 0xa6},
	{0x3503, 0x00},
	{0x3507, 0x00},
	{0x3508, 0x00},
	{0x3509, 0x12},
	{0x350a, 0x00},
	{0x350b, 0x80},
	{0x350f, 0x10},
	{0x3541, 0x02},
	{0x3542, 0x00},
	{0x3543, 0x00},
	{0x3547, 0x00},
	{0x3548, 0x00},
	{0x3549, 0x12},
	{0x354b, 0x10},
	{0x354f, 0x10},
	{0x3603, 0x97},
	{0x3606, 0xe8},
	{0x3607, 0x11},
	{0x360a, 0x44},
	{0x360c, 0x11},
	{0x3618, 0xcc},
	{0x3620, 0x60},
	{0x3621, 0x99},
	{0x3622, 0x7c},
	{0x3624, 0x05},
	{0x362a, 0x25},
	{0x3650, 0x04},
	{0x3660, 0xc4},
	{0x3661, 0x00},
	{0x3662, 0x00},
	{0x3664, 0x88},
	{0x3667, 0x00},
	{0x366a, 0x1c},
	{0x366c, 0x80},
	{0x3700, 0x62},
	{0x3701, 0x08},
	{0x3702, 0x10},
	{0x3703, 0x38},
	{0x3704, 0x26},
	{0x3705, 0x01},
	{0x3706, 0x3a},
	{0x3707, 0xc4},
	{0x3708, 0x3c},
	{0x3709, 0x30},
	{0x370a, 0x23},
	{0x370b, 0x2c},
	{0x370c, 0x42},
	{0x370d, 0xa4},
	{0x370e, 0x14},
	{0x370f, 0x0a},
	{0x3710, 0x15},
	{0x3711, 0x0a},
	{0x3712, 0xa2},
	{0x3713, 0x00},
	{0x371e, 0x2a},
	{0x371f, 0x13},
	{0x3714, 0x00},
	{0x3717, 0x00},
	{0x3719, 0x00},
	{0x371c, 0x04},
	{0x3720, 0xaa},
	{0x3721, 0x10},
	{0x3722, 0x50},
	{0x3726, 0x22},
	{0x3727, 0x44},
	{0x3728, 0x40},
	{0x3729, 0x00},
	{0x372b, 0x00},
	{0x372c, 0x92},
	{0x372d, 0x0c},
	{0x372e, 0x22},
	{0x372f, 0x91},
	{0x3732, 0x01},
	{0x3733, 0xd0},
	{0x3730, 0x01},
	{0x3731, 0xc8},
	{0x3744, 0x01},
	{0x3745, 0x24},
	{0x3746, 0x00},
	{0x3747, 0xd0},
	{0x3748, 0x27},
	{0x374a, 0x4b},
	{0x374b, 0x44},
	{0x3760, 0xd1},
	{0x3761, 0x52},
	{0x3762, 0xa4},
	{0x3763, 0x14},
	{0x3766, 0x0c},
	{0x3767, 0x25},
	{0x3768, 0x0c},
	{0x3769, 0x24},
	{0x376a, 0x09},
	{0x376b, 0x02},
	{0x376d, 0x01},
	{0x376e, 0x53},
	{0x376f, 0x01},
	{0x378c, 0x08},
	{0x378d, 0x46},
	{0x378e, 0x14},
	{0x378f, 0x02},
	{0x3790, 0xc4},
	{0x3792, 0x64},
	{0x3793, 0x5d},
	{0x3794, 0x29},
	{0x3795, 0x4f},
	{0x3796, 0x43},
	{0x3797, 0x09},
	{0x3798, 0x02},
	{0x3799, 0x33},
	{0x379a, 0x09},
	{0x379b, 0x1e},
	{0x379f, 0x3e},
	{0x37a0, 0x44},
	{0x37a1, 0x00},
	{0x37a2, 0x44},
	{0x37a3, 0x41},
	{0x37a4, 0x88},
	{0x37a5, 0x69},
	{0x37b0, 0x48},
	{0x37b1, 0x20},
	{0x37b2, 0x03},
	{0x37b3, 0x48},
	{0x37b4, 0x02},
	{0x37b5, 0x33},
	{0x37b6, 0x22},
	{0x37b8, 0x02},
	{0x37bc, 0x02},
	{0x37c0, 0x3b},
	{0x37c1, 0xc2},
	{0x37c2, 0x06},
	{0x37c3, 0x06},
	{0x37c5, 0x33},
	{0x37c6, 0x35},
	{0x37c7, 0x00},
	{0x3800, 0x00},
	{0x3801, 0x14},
	{0x3802, 0x00},
	{0x3803, 0x0c},
	{0x3804, 0x10},
	{0x3805, 0x8b},
	{0x3806, 0x0c},
	{0x3807, 0x43},
	{0x3808, 0x16},
	{0x3809, 0x00},
	{0x380a, 0x10},
	{0x380b, 0x80},
	{0x380c, 0x18},
	{0x380d, 0x60},
	{0x380e, 0x12},
	{0x380f, 0xc6},
	{0x3810, 0x00},
	{0x3811, 0x03},
	{0x3813, 0x02},
	{0x3814, 0x11},
	{0x3815, 0x11},
	{0x3820, 0x00},
	{0x3821, 0x04},
	{0x3834, 0x00},
	{0x3835, 0x04},
	{0x3836, 0x18},
	{0x3837, 0x02},
	{0x382f, 0x84},
	{0x383c, 0xc8},
	{0x383d, 0xff},
	{0x3842, 0x00},
	{0x384b, 0x00},
	{0x3d85, 0x16},
	{0x3f00, 0x12},
	{0x4000, 0x17},
	{0x4001, 0x60},
	{0x4001, 0x60},
	{0x4008, 0x00},
	{0x4009, 0x13},
	{0x400f, 0x00},
	{0x4011, 0xfb},
	{0x4017, 0x08},
	{0x4018, 0x00},
	{0x401a, 0x4e},
	{0x4019, 0x18},
	{0x4020, 0x08},
	{0x4022, 0x08},
	{0x4024, 0x08},
	{0x4026, 0x08},
	{0x4028, 0x08},
	{0x402a, 0x08},
	{0x402c, 0x08},
	{0x402e, 0x08},
	{0x4030, 0x08},
	{0x4032, 0x08},
	{0x4034, 0x08},
	{0x4036, 0x08},
	{0x4038, 0x08},
	{0x403a, 0x08},
	{0x403c, 0x08},
	{0x403e, 0x08},
	{0x405c, 0x3f},
	{0x4066, 0x04},
	{0x4051, 0x03},
	{0x4052, 0x00},
	{0x4053, 0x80},
	{0x4054, 0x00},
	{0x4055, 0x80},
	{0x4056, 0x00},
	{0x4057, 0x80},
	{0x4058, 0x00},
	{0x4059, 0x80},
	{0x4202, 0x00},
	{0x4203, 0x01},
	{0x430b, 0xff},
	{0x430d, 0x00},
	{0x4500, 0x72},
	{0x4605, 0x00},
	{0x4640, 0x01},
	{0x4641, 0x04},
	{0x4645, 0x00},
	{0x4800, 0x04},
	{0x4809, 0x2b},
	{0x4813, 0x90},
	{0x4817, 0x04},
	{0x4833, 0x18},
	{0x4837, 0x20},
	{0x484b, 0x01},
	{0x4850, 0x5c},
	{0x4852, 0x27},
	{0x4856, 0x5c},
	{0x4857, 0x55},
	{0x486a, 0xaa},
	{0x486e, 0x03},
	{0x486f, 0x55},
	{0x4875, 0xf0},
	{0x4b04, 0x80},
	{0x4b06, 0x00},
	{0x4c01, 0xdf},
	{0x4e00, 0x04},
	{0x4e17, 0x04},
	{0x4e33, 0x18},
	{0x4e37, 0x11},
	{0x4e4b, 0x01},
	{0x4e50, 0x5c},
	{0x4e52, 0x27},
	{0x4e56, 0x5c},
	{0x4e57, 0x55},
	{0x4e6a, 0xaa},
	{0x4e6e, 0x03},
	{0x4e6f, 0x55},
	{0x4e75, 0xf0},
	{0x5000, 0x99},
	{0x5001, 0x42},
	{0x5002, 0x04},
	{0x5003, 0x01},
	{0x5004, 0x00},
	{0x5005, 0x00},
	{0x501d, 0x00},
	{0x501f, 0x06},
	{0x5021, 0x00},
	{0x5022, 0x13},
	{0x5061, 0xff},
	{0x5062, 0xff},
	{0x5063, 0xff},
	{0x5064, 0xff},
	{0x5280, 0x00},
	{0x5282, 0x00},
	{0x5283, 0x01},
	{0x5200, 0x00},
	{0x5201, 0x71},
	{0x5203, 0x04},
	{0x5204, 0x00},
	{0x5205, 0x88},
	{0x5209, 0x00},
	{0x520a, 0x80},
	{0x520b, 0x04},
	{0x520c, 0x01},
	{0x5210, 0x10},
	{0x5211, 0xa0},
	{0x5292, 0x00},
	{0x5500, 0x00},
	{0x5501, 0x00},
	{0x5502, 0x00},
	{0x5503, 0x00},
	{0x5504, 0x00},
	{0x5505, 0x00},
	{0x5506, 0x00},
	{0x5507, 0x00},
	{0x5508, 0x00},
	{0x5509, 0x00},
	{0x550a, 0x00},
	{0x550b, 0x00},
	{0x550c, 0x00},
	{0x550d, 0x00},
	{0x550e, 0x00},
	{0x550f, 0x00},
	{0x5510, 0x04},
	{0x5511, 0x04},
	{0x5512, 0x04},
	{0x5513, 0x04},
	{0x5514, 0x08},
	{0x5515, 0x08},
	{0x5516, 0x08},
	{0x5517, 0x08},
	{0x5518, 0x00},
	{0x5519, 0x00},
	{0x551a, 0x00},
	{0x551b, 0x00},
	{0x551c, 0x00},
	{0x551d, 0x00},
	{0x551e, 0x00},
	{0x551f, 0x00},
	{0x5520, 0x00},
	{0x5521, 0x00},
	{0x5522, 0x00},
	{0x5523, 0x00},
	{0x5524, 0x00},
	{0x5525, 0x00},
	{0x5526, 0x00},
	{0x5527, 0x00},
	{0x5528, 0x00},
	{0x5529, 0x00},
	{0x552a, 0x00},
	{0x552b, 0x00},
	{0x552c, 0x00},
	{0x552d, 0x00},
	{0x552e, 0x00},
	{0x552f, 0x00},
	{0x5530, 0x04},
	{0x5531, 0x04},
	{0x5532, 0x04},
	{0x5533, 0x04},
	{0x5534, 0x08},
	{0x5535, 0x08},
	{0x5536, 0x08},
	{0x5537, 0x08},
	{0x5538, 0x00},
	{0x5539, 0x00},
	{0x553a, 0x00},
	{0x553b, 0x00},
	{0x553c, 0x00},
	{0x553d, 0x00},
	{0x553e, 0x00},
	{0x553f, 0x00},
	{0x5540, 0x00},
	{0x5541, 0x00},
	{0x5542, 0x00},
	{0x5543, 0x00},
	{0x5544, 0x00},
	{0x5545, 0x00},
	{0x5546, 0x00},
	{0x5547, 0x00},
	{0x5548, 0x00},
	{0x5549, 0x00},
	{0x554a, 0x00},
	{0x554b, 0x00},
	{0x554c, 0x00},
	{0x554d, 0x00},
	{0x554e, 0x00},
	{0x554f, 0x00},
	{0x5550, 0x04},
	{0x5551, 0x04},
	{0x5552, 0x04},
	{0x5553, 0x04},
	{0x5554, 0x08},
	{0x5555, 0x08},
	{0x5556, 0x08},
	{0x5557, 0x08},
	{0x5558, 0x00},
	{0x5559, 0x00},
	{0x555a, 0x00},
	{0x555b, 0x00},
	{0x555c, 0x00},
	{0x555d, 0x00},
	{0x555e, 0x00},
	{0x555f, 0x00},
	{0x5560, 0x00},
	{0x5561, 0x00},
	{0x5562, 0x00},
	{0x5563, 0x00},
	{0x5564, 0x00},
	{0x5565, 0x00},
	{0x5566, 0x00},
	{0x5567, 0x00},
	{0x5568, 0x00},
	{0x5569, 0x00},
	{0x556a, 0x00},
	{0x556b, 0x00},
	{0x556c, 0x00},
	{0x556d, 0x00},
	{0x556e, 0x00},
	{0x556f, 0x00},
	{0x5570, 0x04},
	{0x5571, 0x04},
	{0x5572, 0x04},
	{0x5573, 0x04},
	{0x5574, 0x08},
	{0x5575, 0x08},
	{0x5576, 0x08},
	{0x5577, 0x08},
	{0x5578, 0x00},
	{0x5579, 0x00},
	{0x557a, 0x00},
	{0x557b, 0x00},
	{0x557c, 0x00},
	{0x557d, 0x00},
	{0x557e, 0x00},
	{0x557f, 0x00},
	{0x5580, 0x00},
	{0x5581, 0x00},
	{0x5582, 0x00},
	{0x5583, 0x00},
	{0x5584, 0x00},
	{0x5585, 0x00},
	{0x5586, 0x00},
	{0x5587, 0x00},
	{0x5588, 0x00},
	{0x5589, 0x00},
	{0x558a, 0x00},
	{0x558b, 0x00},
	{0x558c, 0x04},
	{0x558d, 0x04},
	{0x558e, 0x04},
	{0x558f, 0x04},
	{0x5590, 0x0e},
	{0x5591, 0x0e},
	{0x5592, 0x0e},
	{0x5593, 0x0e},
	{0x5594, 0x1c},
	{0x5595, 0x1c},
	{0x5596, 0x1c},
	{0x5597, 0x1c},
	{0x5598, 0x08},
	{0x5599, 0x08},
	{0x559a, 0x08},
	{0x559b, 0x08},
	{0x559c, 0x00},
	{0x559d, 0x00},
	{0x559e, 0x00},
	{0x559f, 0x00},
	{0x55a0, 0x00},
	{0x55a1, 0x00},
	{0x55a2, 0x00},
	{0x55a3, 0x00},
	{0x55a4, 0x00},
	{0x55a5, 0x00},
	{0x55a6, 0x00},
	{0x55a7, 0x00},
	{0x55a8, 0x00},
	{0x55a9, 0x00},
	{0x55aa, 0x00},
	{0x55ab, 0x00},
	{0x55ac, 0x04},
	{0x55ad, 0x04},
	{0x55ae, 0x04},
	{0x55af, 0x04},
	{0x55b0, 0x0e},
	{0x55b1, 0x0e},
	{0x55b2, 0x0e},
	{0x55b3, 0x0e},
	{0x55b4, 0x1c},
	{0x55b5, 0x1c},
	{0x55b6, 0x1c},
	{0x55b7, 0x1c},
	{0x55b8, 0x08},
	{0x55b9, 0x08},
	{0x55ba, 0x08},
	{0x55bb, 0x08},
	{0x55bc, 0x00},
	{0x55bd, 0x00},
	{0x55be, 0x00},
	{0x55bf, 0x00},
	{0x55c0, 0x00},
	{0x55c1, 0x00},
	{0x55c2, 0x00},
	{0x55c3, 0x00},
	{0x55c4, 0x00},
	{0x55c5, 0x00},
	{0x55c6, 0x00},
	{0x55c7, 0x00},
	{0x55c8, 0x00},
	{0x55c9, 0x00},
	{0x55ca, 0x00},
	{0x55cb, 0x00},
	{0x55cc, 0x04},
	{0x55cd, 0x04},
	{0x55ce, 0x04},
	{0x55cf, 0x04},
	{0x55d0, 0x0e},
	{0x55d1, 0x0e},
	{0x55d2, 0x0e},
	{0x55d3, 0x0e},
	{0x55d4, 0x1c},
	{0x55d5, 0x1c},
	{0x55d6, 0x1c},
	{0x55d7, 0x1c},
	{0x55d8, 0x08},
	{0x55d9, 0x08},
	{0x55da, 0x08},
	{0x55db, 0x08},
	{0x55dc, 0x00},
	{0x55dd, 0x00},
	{0x55de, 0x00},
	{0x55df, 0x00},
	{0x55e0, 0x00},
	{0x55e1, 0x00},
	{0x55e2, 0x00},
	{0x55e3, 0x00},
	{0x55e4, 0x00},
	{0x55e5, 0x00},
	{0x55e6, 0x00},
	{0x55e7, 0x00},
	{0x55e8, 0x00},
	{0x55e9, 0x00},
	{0x55ea, 0x00},
	{0x55eb, 0x00},
	{0x55ec, 0x04},
	{0x55ed, 0x04},
	{0x55ee, 0x04},
	{0x55ef, 0x04},
	{0x55f0, 0x0e},
	{0x55f1, 0x0e},
	{0x55f2, 0x0e},
	{0x55f3, 0x0e},
	{0x55f4, 0x1c},
	{0x55f5, 0x1c},
	{0x55f6, 0x1c},
	{0x55f7, 0x1c},
	{0x55f8, 0x08},
	{0x55f9, 0x08},
	{0x55fa, 0x08},
	{0x55fb, 0x08},
	{0x55fc, 0x00},
	{0x55fd, 0x00},
	{0x55fe, 0x00},
	{0x55ff, 0x00},
	{0x567b, 0x00},
	{0x5690, 0x00},
	{0x5691, 0x00},
	{0x5692, 0x00},
	{0x5693, 0x0a},
	{0x5694, 0xc0},
	{0x5696, 0x06},
	{0x5697, 0x0a},
	{0x5698, 0x00},
	{0x5699, 0x1c},
	{0x569a, 0x16},
	{0x569b, 0x04},
	{0x569c, 0x00},
	{0x569d, 0x1c},
	{0x569e, 0x10},
	{0x569f, 0x84},
	{0x56a0, 0x36},
	{0x56a1, 0x50},
	{0x56a2, 0x16},
	{0x56a3, 0x20},
	{0x56a4, 0x10},
	{0x56a5, 0xa0},
	{0x5c80, 0x06},
	{0x5c81, 0x80},
	{0x5c82, 0x09},
	{0x5c83, 0x5f},
	{0x5d00, 0x01},
	{0x5d01, 0x00},
	{0x5d02, 0x01},
	{0x5d03, 0x00},
	{0x5d04, 0x02},
	{0x5d05, 0x00},
	{0x5d06, 0x02},
	{0x5d07, 0x00},
	{0x5d08, 0x70},
	{0x5d09, 0x74},
	{0x5d0a, 0x78},
	{0x5d0b, 0x7c},
	{0x5d0c, 0x80},
	{0x5d0d, 0x80},
	{0x5d0e, 0x7c},
	{0x5d0f, 0x78},
	{0x5d10, 0x74},
	{0x5d11, 0x70},
	{0x5d12, 0x98},
	{0x5d13, 0x96},
	{0x5d14, 0x63},
	{0x5d15, 0x3a},
	{0x5d16, 0x38},
	{0x5d17, 0x39},
	{0x5d18, 0x37},
	{0x5d19, 0x53},
	{0x5d1a, 0x8b},
	{0x5d1b, 0x9d},
	{0x5d24, 0x00},
	{0x5d25, 0x00},
	{0x5d26, 0x00},
	{0x5d27, 0x0a},
	{0x5d28, 0xc0},
	{0x5d2a, 0x00},
	{0x5d2b, 0x1c},
	{0x5d2c, 0x16},
	{0x5d2d, 0x04},
	{0x5d2e, 0x00},
	{0x5d2f, 0x1c},
	{0x5d30, 0x10},
	{0x5d31, 0x84},
	{0x5d32, 0x10},
	{0x5d34, 0x16},
	{0x5d35, 0x20},
	{0x5d36, 0x10},
	{0x5d37, 0xa0},
	{0x5d38, 0x5c},
	{0x5d39, 0x7b},
	{0x5d1c, 0x00},
	{0x5d1d, 0x1c},
	{0x5d1e, 0x00},
	{0x5d1f, 0x1c},
	{0x5d20, 0x15},
	{0x5d21, 0xe0},
	{0x5d22, 0x10},
	{0x5d23, 0x40},
	{0x5d29, 0x40},
	{0x3008, 0x01},
	{0x3663, 0x60},
	{0x3002, 0x01},
	{0x3c00, 0x3c},
	{0x3025, 0x03},
	{0x3668, 0xf0},
	{0x3400, 0x04},
	{OV23850_TABLE_END, 0x00},
};

static ov23850_reg mode_5632x4224_8fps[] = {
	{0x0303, 0x20},
	{0x0316, 0x1e},
	{0x0317, 0x04},
	{0x0318, 0x03},
	{0x031c, 0x01},
	{0x031d, 0x02},
	{0x031e, 0x01},
	{0x2b05, 0x02},
	{0x2b06, 0x87},
	{0x2b07, 0x01},
	{0x2b08, 0xa8},
	{0x0320, 0x02},
	{0x3002, 0x00},
	{0x300f, 0x11},
	{0x3010, 0x01},
	{0x3012, 0x41},
	{0x3016, 0xd2},
	{0x3018, 0x70},
	{0x3019, 0xe1},
	{0x301b, 0x96},
	{0x3022, 0x0f},
	{0x3023, 0xb4},
	{0x3031, 0x91},
	{0x3034, 0x41},
	{0x340c, 0xff},
	{0x3501, 0x12},
	{0x3502, 0xa6},
	{0x3503, 0x00},
	{0x3507, 0x00},
	{0x3508, 0x00},
	{0x3509, 0x12},
	{0x350a, 0x00},
	{0x350b, 0x80},
	{0x350f, 0x10},
	{0x3541, 0x02},
	{0x3542, 0x00},
	{0x3543, 0x00},
	{0x3547, 0x00},
	{0x3548, 0x00},
	{0x3549, 0x12},
	{0x354b, 0x10},
	{0x354f, 0x10},
	{0x3601, 0xa4},
	{0x3603, 0x97},
	{0x3604, 0x02},
	{0x3605, 0xf2},
	{0x3606, 0xe8},
	{0x3607, 0x11},
	{0x360a, 0x34},
	{0x360c, 0x13},
	{0x3618, 0xcc},
	{0x3620, 0x50},
	{0x3621, 0x99},
	{0x3622, 0x7d},
	{0x3624, 0x05},
	{0x362a, 0x25},
	{0x3650, 0x04},
	{0x3660, 0xc0},
	{0x3661, 0x00},
	{0x3662, 0x00},
	{0x3664, 0x88},
	{0x3667, 0x00},
	{0x366a, 0x5c},
	{0x366c, 0x80},
	{0x3700, 0x62},
	{0x3701, 0x08},
	{0x3702, 0x10},
	{0x3703, 0x3e},
	{0x3704, 0x26},
	{0x3705, 0x01},
	{0x3706, 0x3a},
	{0x3707, 0xc4},
	{0x3708, 0x3c},
	{0x3709, 0x1c},
	{0x370a, 0x23},
	{0x370b, 0x2c},
	{0x370c, 0x42},
	{0x370d, 0xa4},
	{0x370e, 0x14},
	{0x370f, 0x0a},
	{0x3710, 0x15},
	{0x3711, 0x0a},
	{0x3712, 0xa2},
	{0x3713, 0x00},
	{0x371e, 0x2a},
	{0x371f, 0x13},
	{0x3714, 0x00},
	{0x3717, 0x00},
	{0x3719, 0x00},
	{0x371c, 0x04},
	{0x3720, 0xaa},
	{0x3721, 0x10},
	{0x3722, 0x50},
	{0x3725, 0xf0},
	{0x3726, 0x22},
	{0x3727, 0x44},
	{0x3728, 0x40},
	{0x3729, 0x00},
	{0x372b, 0x00},
	{0x372c, 0x92},
	{0x372d, 0x0c},
	{0x372e, 0x22},
	{0x372f, 0x91},
	{0x3732, 0x01},
	{0x3733, 0xd0},
	{0x3730, 0x01},
	{0x3731, 0xc8},
	{0x3744, 0x01},
	{0x3745, 0x24},
	{0x3746, 0x00},
	{0x3747, 0xd0},
	{0x3748, 0x27},
	{0x374a, 0x4b},
	{0x374b, 0x44},
	{0x3760, 0xd1},
	{0x3761, 0x52},
	{0x3762, 0xa4},
	{0x3763, 0x14},
	{0x3766, 0x0c},
	{0x3767, 0x25},
	{0x3768, 0x0c},
	{0x3769, 0x24},
	{0x376a, 0x09},
	{0x376b, 0x02},
	{0x376d, 0x01},
	{0x376e, 0x53},
	{0x376f, 0x01},
	{0x378c, 0x08},
	{0x378d, 0x46},
	{0x378e, 0x14},
	{0x378f, 0x02},
	{0x3790, 0xc4},
	{0x3792, 0x64},
	{0x3793, 0x5d},
	{0x3794, 0x29},
	{0x3795, 0x4f},
	{0x3796, 0x43},
	{0x3797, 0x09},
	{0x3798, 0x02},
	{0x3799, 0x33},
	{0x379a, 0x09},
	{0x379b, 0x1e},
	{0x379f, 0x3e},
	{0x37a0, 0x44},
	{0x37a1, 0x00},
	{0x37a2, 0x44},
	{0x37a3, 0x41},
	{0x37a4, 0x88},
	{0x37a5, 0x69},
	{0x37b0, 0x48},
	{0x37b1, 0x20},
	{0x37b2, 0x03},
	{0x37b3, 0x48},
	{0x37b4, 0x02},
	{0x37b5, 0x33},
	{0x37b6, 0x22},
	{0x37b8, 0x02},
	{0x37bc, 0x02},
	{0x37c0, 0x3b},
	{0x37c1, 0xc2},
	{0x37c2, 0x06},
	{0x37c3, 0x06},
	{0x37c5, 0x33},
	{0x37c6, 0x35},
	{0x37c7, 0x00},
	{0x3800, 0x00},
	{0x3801, 0x14},
	{0x3802, 0x00},
	{0x3803, 0x0c},
	{0x3804, 0x10},
	{0x3805, 0x8b},
	{0x3806, 0x0c},
	{0x3807, 0x43},
	{0x3808, 0x16},
	{0x3809, 0x00},
	{0x380a, 0x10},
	{0x380b, 0x80},
	{0x380c, 0x1c},
	{0x380d, 0x20},
	{0x380e, 0x12},
	{0x380f, 0xc6},
	{0x3810, 0x00},
	{0x3811, 0x03},
	{0x3813, 0x06},
	{0x3814, 0x11},
	{0x3815, 0x11},
	{0x3820, 0x00},
	{0x3821, 0x04},
	{0x3834, 0x00},
	{0x3835, 0x04},
	{0x3836, 0x18},
	{0x3837, 0x02},
	{0x382f, 0x84},
	{0x383c, 0xc8},
	{0x383d, 0xff},
	{0x3842, 0x00},
	{0x384b, 0x00},
	{0x3d85, 0x16},
	{0x3d8c, 0x77},
	{0x3d8d, 0x10},
	{0x3f00, 0x52},
	{0x4000, 0x17},
	{0x4001, 0x60},
	{0x4001, 0x60},
	{0x4008, 0x00},
	{0x4009, 0x13},
	{0x400f, 0x00},
	{0x4011, 0xfb},
	{0x4017, 0x08},
	{0x4018, 0x00},
	{0x401a, 0xce},
	{0x4019, 0x18},
	{0x4020, 0x08},
	{0x4022, 0x08},
	{0x4024, 0x08},
	{0x4026, 0x08},
	{0x4028, 0x08},
	{0x402a, 0x08},
	{0x402c, 0x08},
	{0x402e, 0x08},
	{0x4030, 0x08},
	{0x4032, 0x08},
	{0x4034, 0x08},
	{0x4036, 0x08},
	{0x4038, 0x08},
	{0x403a, 0x08},
	{0x403c, 0x08},
	{0x403e, 0x08},
	{0x405c, 0x3f},
	{0x4066, 0x04},
	{0x4051, 0x03},
	{0x4052, 0x00},
	{0x4053, 0x80},
	{0x4054, 0x00},
	{0x4055, 0x80},
	{0x4056, 0x00},
	{0x4057, 0x80},
	{0x4058, 0x00},
	{0x4059, 0x80},
	{0x4202, 0x00},
	{0x4203, 0x01},
	{0x430b, 0xff},
	{0x430d, 0x00},
	{0x4500, 0x72},
	{0x4605, 0x00},
	{0x4640, 0x01},
	{0x4641, 0x04},
	{0x4645, 0x00},
	{0x4800, 0x04},
	{0x4809, 0x2b},
	{0x4813, 0x90},
	{0x4817, 0x04},
	{0x4833, 0x18},
	{0x4837, 0x20},
	{0x484b, 0x01},
	{0x4850, 0x5c},
	{0x4852, 0x27},
	{0x4856, 0x5c},
	{0x4857, 0x55},
	{0x486a, 0xaa},
	{0x486e, 0x03},
	{0x486f, 0x55},
	{0x4875, 0xf0},
	{0x4b04, 0x80},
	{0x4b05, 0xb3},
	{0x4b06, 0x00},
	{0x4c01, 0xdf},
	{0x4d00, 0x04},
	{0x4d01, 0xf0},
	{0x4d02, 0xb8},
	{0x4d03, 0xf2},
	{0x4d04, 0x88},
	{0x4d05, 0x9d},
	{0x4e00, 0x04},
	{0x4e17, 0x04},
	{0x4e33, 0x18},
	{0x4e37, 0x11},
	{0x4e4b, 0x01},
	{0x4e50, 0x5c},
	{0x4e52, 0x27},
	{0x4e56, 0x5c},
	{0x4e57, 0x55},
	{0x4e6a, 0xaa},
	{0x4e6e, 0x03},
	{0x4e6f, 0x55},
	{0x4e75, 0xf0},
	{0x5000, 0x9b},
	{0x5001, 0x42},
	{0x5002, 0x10},
	{0x5003, 0x01},
	{0x5004, 0x00},
	{0x5005, 0x00},
	{0x501d, 0x00},
	{0x501f, 0x06},
	{0x5020, 0x03},
	{0x5021, 0x00},
	{0x5022, 0x13},
	{0x5061, 0xff},
	{0x5062, 0xff},
	{0x5063, 0xff},
	{0x5064, 0xff},
	{0x506f, 0x00},
	{0x5280, 0x00},
	{0x5282, 0x00},
	{0x5283, 0x01},
	{0x5200, 0x00},
	{0x5201, 0x71},
	{0x5203, 0x04},
	{0x5204, 0x00},
	{0x5205, 0x88},
	{0x5209, 0x00},
	{0x520a, 0x80},
	{0x520b, 0x04},
	{0x520c, 0x01},
	{0x5210, 0x10},
	{0x5211, 0xa0},
	{0x5292, 0x04},
	{0x5500, 0x00},
	{0x5501, 0x00},
	{0x5502, 0x00},
	{0x5503, 0x00},
	{0x5504, 0x00},
	{0x5505, 0x00},
	{0x5506, 0x00},
	{0x5507, 0x00},
	{0x5508, 0x10},
	{0x5509, 0x00},
	{0x550a, 0x10},
	{0x550b, 0x00},
	{0x550c, 0x20},
	{0x550d, 0x00},
	{0x550e, 0x20},
	{0x550f, 0x00},
	{0x5510, 0x00},
	{0x5511, 0x00},
	{0x5512, 0x00},
	{0x5513, 0x00},
	{0x5514, 0x00},
	{0x5515, 0x00},
	{0x5516, 0x00},
	{0x5517, 0x00},
	{0x5518, 0x00},
	{0x5519, 0x00},
	{0x551a, 0x00},
	{0x551b, 0x00},
	{0x551c, 0x00},
	{0x551d, 0x00},
	{0x551e, 0x00},
	{0x551f, 0x00},
	{0x5520, 0x00},
	{0x5521, 0x00},
	{0x5522, 0x00},
	{0x5523, 0x00},
	{0x5524, 0x00},
	{0x5525, 0x00},
	{0x5526, 0x00},
	{0x5527, 0x00},
	{0x5528, 0x00},
	{0x5529, 0x10},
	{0x552a, 0x00},
	{0x552b, 0x10},
	{0x552c, 0x00},
	{0x552d, 0x20},
	{0x552e, 0x00},
	{0x552f, 0x20},
	{0x5530, 0x00},
	{0x5531, 0x00},
	{0x5532, 0x00},
	{0x5533, 0x00},
	{0x5534, 0x00},
	{0x5535, 0x00},
	{0x5536, 0x00},
	{0x5537, 0x00},
	{0x5538, 0x00},
	{0x5539, 0x00},
	{0x553a, 0x00},
	{0x553b, 0x00},
	{0x553c, 0x00},
	{0x553d, 0x00},
	{0x553e, 0x00},
	{0x553f, 0x00},
	{0x5540, 0x00},
	{0x5541, 0x00},
	{0x5542, 0x00},
	{0x5543, 0x00},
	{0x5544, 0x00},
	{0x5545, 0x00},
	{0x5546, 0x00},
	{0x5547, 0x00},
	{0x5548, 0x01},
	{0x5549, 0x00},
	{0x554a, 0x01},
	{0x554b, 0x00},
	{0x554c, 0x02},
	{0x554d, 0x00},
	{0x554e, 0x02},
	{0x554f, 0x00},
	{0x5550, 0x00},
	{0x5551, 0x00},
	{0x5552, 0x00},
	{0x5553, 0x00},
	{0x5554, 0x00},
	{0x5555, 0x00},
	{0x5556, 0x00},
	{0x5557, 0x00},
	{0x5558, 0x00},
	{0x5559, 0x00},
	{0x555a, 0x00},
	{0x555b, 0x00},
	{0x555c, 0x00},
	{0x555d, 0x00},
	{0x555e, 0x00},
	{0x555f, 0x00},
	{0x5560, 0x00},
	{0x5561, 0x00},
	{0x5562, 0x00},
	{0x5563, 0x00},
	{0x5564, 0x00},
	{0x5565, 0x00},
	{0x5566, 0x00},
	{0x5567, 0x00},
	{0x5568, 0x00},
	{0x5569, 0x10},
	{0x556a, 0x00},
	{0x556b, 0x10},
	{0x556c, 0x00},
	{0x556d, 0x20},
	{0x556e, 0x00},
	{0x556f, 0x20},
	{0x5570, 0x00},
	{0x5571, 0x00},
	{0x5572, 0x00},
	{0x5573, 0x00},
	{0x5574, 0x00},
	{0x5575, 0x00},
	{0x5576, 0x00},
	{0x5577, 0x00},
	{0x5578, 0x00},
	{0x5579, 0x00},
	{0x557a, 0x00},
	{0x557b, 0x00},
	{0x557c, 0x00},
	{0x557d, 0x00},
	{0x557e, 0x00},
	{0x557f, 0x00},
	{0x5580, 0x00},
	{0x5581, 0x00},
	{0x5582, 0x00},
	{0x5583, 0x00},
	{0x5584, 0x10},
	{0x5585, 0x00},
	{0x5586, 0x10},
	{0x5587, 0x00},
	{0x5588, 0x38},
	{0x5589, 0x00},
	{0x558a, 0x38},
	{0x558b, 0x00},
	{0x558c, 0x70},
	{0x558d, 0x00},
	{0x558e, 0x70},
	{0x558f, 0x00},
	{0x5590, 0x20},
	{0x5591, 0x00},
	{0x5592, 0x20},
	{0x5593, 0x00},
	{0x5594, 0x00},
	{0x5595, 0x00},
	{0x5596, 0x00},
	{0x5597, 0x00},
	{0x5598, 0x00},
	{0x5599, 0x00},
	{0x559a, 0x00},
	{0x559b, 0x00},
	{0x559c, 0x00},
	{0x559d, 0x00},
	{0x559e, 0x00},
	{0x559f, 0x00},
	{0x55a0, 0x00},
	{0x55a1, 0x00},
	{0x55a2, 0x00},
	{0x55a3, 0x00},
	{0x55a4, 0x00},
	{0x55a5, 0x10},
	{0x55a6, 0x00},
	{0x55a7, 0x10},
	{0x55a8, 0x00},
	{0x55a9, 0x38},
	{0x55aa, 0x00},
	{0x55ab, 0x38},
	{0x55ac, 0x00},
	{0x55ad, 0x70},
	{0x55ae, 0x00},
	{0x55af, 0x70},
	{0x55b0, 0x00},
	{0x55b1, 0x20},
	{0x55b2, 0x00},
	{0x55b3, 0x20},
	{0x55b4, 0x00},
	{0x55b5, 0x00},
	{0x55b6, 0x00},
	{0x55b7, 0x00},
	{0x55b8, 0x00},
	{0x55b9, 0x00},
	{0x55ba, 0x00},
	{0x55bb, 0x00},
	{0x55bc, 0x00},
	{0x55bd, 0x00},
	{0x55be, 0x00},
	{0x55bf, 0x00},
	{0x55c0, 0x00},
	{0x55c1, 0x00},
	{0x55c2, 0x00},
	{0x55c3, 0x00},
	{0x55c4, 0x01},
	{0x55c5, 0x00},
	{0x55c6, 0x01},
	{0x55c7, 0x00},
	{0x55c8, 0x03},
	{0x55c9, 0x80},
	{0x55ca, 0x03},
	{0x55cb, 0x80},
	{0x55cc, 0x07},
	{0x55cd, 0x00},
	{0x55ce, 0x07},
	{0x55cf, 0x00},
	{0x55d0, 0x02},
	{0x55d1, 0x00},
	{0x55d2, 0x02},
	{0x55d3, 0x00},
	{0x55d4, 0x00},
	{0x55d5, 0x00},
	{0x55d6, 0x00},
	{0x55d7, 0x00},
	{0x55d8, 0x00},
	{0x55d9, 0x00},
	{0x55da, 0x00},
	{0x55db, 0x00},
	{0x55dc, 0x00},
	{0x55dd, 0x00},
	{0x55de, 0x00},
	{0x55df, 0x00},
	{0x55e0, 0x00},
	{0x55e1, 0x00},
	{0x55e2, 0x00},
	{0x55e3, 0x00},
	{0x55e4, 0x00},
	{0x55e5, 0x10},
	{0x55e6, 0x00},
	{0x55e7, 0x10},
	{0x55e8, 0x00},
	{0x55e9, 0x38},
	{0x55ea, 0x00},
	{0x55eb, 0x38},
	{0x55ec, 0x00},
	{0x55ed, 0x70},
	{0x55ee, 0x00},
	{0x55ef, 0x70},
	{0x55f0, 0x00},
	{0x55f1, 0x20},
	{0x55f2, 0x00},
	{0x55f3, 0x20},
	{0x55f4, 0x00},
	{0x55f5, 0x00},
	{0x55f6, 0x00},
	{0x55f7, 0x00},
	{0x55f8, 0x00},
	{0x55f9, 0x00},
	{0x55fa, 0x00},
	{0x55fb, 0x00},
	{0x55fc, 0x00},
	{0x55fd, 0x00},
	{0x55fe, 0x00},
	{0x55ff, 0x00},
	{0x5600, 0x30},
	{0x5601, 0x00},
	{0x5602, 0x00},
	{0x5603, 0x00},
	{0x5604, 0x00},
	{0x5605, 0x00},
	{0x5606, 0x00},
	{0x5607, 0x01},
	{0x5608, 0x01},
	{0x5609, 0x01},
	{0x560f, 0xfc},
	{0x5610, 0xf0},
	{0x5611, 0x10},
	{0x562f, 0xfc},
	{0x5630, 0xf0},
	{0x5631, 0x10},
	{0x564f, 0xfc},
	{0x5650, 0xf0},
	{0x5651, 0x10},
	{0x566f, 0xfc},
	{0x5670, 0xf0},
	{0x5671, 0x10},
	{0x567b, 0x40},
	{0x5690, 0x00},
	{0x5691, 0x00},
	{0x5692, 0x00},
	{0x5693, 0x0a},
	{0x5694, 0x80},
	{0x5696, 0x06},
	{0x5697, 0x0a},
	{0x5698, 0x00},
	{0x5699, 0x90},
	{0x569a, 0x15},
	{0x569b, 0x90},
	{0x569c, 0x00},
	{0x569d, 0x50},
	{0x569e, 0x10},
	{0x569f, 0x50},
	{0x56a0, 0x36},
	{0x56a1, 0x50},
	{0x56a2, 0x16},
	{0x56a3, 0x20},
	{0x56a4, 0x10},
	{0x56a5, 0xa0},
	{0x5c80, 0x06},
	{0x5c81, 0x80},
	{0x5c82, 0x09},
	{0x5c83, 0x5f},
	{0x5d04, 0x01},
	{0x5d05, 0x1a},
	{0x5d06, 0x01},
	{0x5d07, 0x1a},
	{0x5d12, 0xf7},
	{0x5d13, 0xdd},
	{0x5d14, 0x97},
	{0x5d15, 0x69},
	{0x5d16, 0x61},
	{0x5d17, 0x5b},
	{0x5d18, 0x62},
	{0x5d19, 0x8d},
	{0x5d1a, 0xdd},
	{0x5d1b, 0xff},
	{0x5d24, 0x00},
	{0x5d25, 0x00},
	{0x5d26, 0x00},
	{0x5d27, 0x0a},
	{0x5d28, 0x80},
	{0x5d2a, 0x00},
	{0x5d2b, 0x90},
	{0x5d2c, 0x15},
	{0x5d2d, 0x90},
	{0x5d2e, 0x00},
	{0x5d2f, 0x50},
	{0x5d30, 0x10},
	{0x5d31, 0x50},
	{0x5d32, 0x10},
	{0x5d34, 0x36},
	{0x5d35, 0x20},
	{0x5d36, 0x90},
	{0x5d37, 0xa0},
	{0x5d38, 0x5c},
	{0x5d39, 0x7b},
	{0x5d1c, 0x00},
	{0x5d1d, 0x90},
	{0x5d1e, 0x00},
	{0x5d1f, 0x50},
	{0x5d20, 0x15},
	{0x5d21, 0x00},
	{0x5d22, 0x10},
	{0x5d23, 0x00},
	{0x5d29, 0xc0},
	{0x3008, 0x01},
	{0x3663, 0x60},
	{0x3002, 0x01},
	{0x3c00, 0x3c},
	{0x3025, 0x03},
	{0x3668, 0xf0},
	{0x3400, 0x04},
	{OV23850_TABLE_END, 0x00}
};

static ov23850_reg mode_5632x4224_24fps_dpcm[] = {
	{0x0317, 0x00},
	{0x0318, 0x03},
	{0x0316, 0x1e},
	{0x0318, 0x03},
	{0x031c, 0x01},
	{0x031d, 0x02},
	{0x031e, 0x00},
	{0x2b05, 0x02},
	{0x2b06, 0x87},
	{0x2b07, 0x01},
	{0x2b08, 0xa8},
	{0x0320, 0x02},
	{0x3002, 0x00},
	{0x300f, 0x11},
	{0x3010, 0x01},
	{0x3012, 0x41},
	{0x3031, 0x91},
	{0x3034, 0x41},
	{0x340c, 0xff},
	{0x3501, 0x12},
	{0x3502, 0xa6},
	{0x3503, 0x00},
	{0x3507, 0x00},
	{0x3508, 0x00},
	{0x3509, 0x12},
	{0x350a, 0x00},
	{0x350b, 0x80},
	{0x350f, 0x10},
	{0x3541, 0x02},
	{0x3542, 0x00},
	{0x3543, 0x00},
	{0x3547, 0x00},
	{0x3548, 0x00},
	{0x3549, 0x12},
	{0x354b, 0x10},
	{0x354f, 0x10},
	{0x3603, 0x97},
	{0x3606, 0xe8},
	{0x3607, 0x11},
	{0x360a, 0x44},
	{0x360c, 0x11},
	{0x3618, 0xcc},
	{0x3620, 0x60},
	{0x3621, 0x99},
	{0x3622, 0x7c},
	{0x3624, 0x05},
	{0x362a, 0x25},
	{0x3650, 0x04},
	{0x3660, 0xc4},
	{0x3661, 0x00},
	{0x3662, 0x00},
	{0x3664, 0x88},
	{0x3667, 0x00},
	{0x366a, 0x1c},
	{0x366c, 0x80},
	{0x3700, 0x62},
	{0x3701, 0x08},
	{0x3702, 0x10},
	{0x3703, 0x38},
	{0x3704, 0x26},
	{0x3705, 0x01},
	{0x3706, 0x3a},
	{0x3707, 0xc4},
	{0x3708, 0x3c},
	{0x3709, 0x30},
	{0x370a, 0x23},
	{0x370b, 0x2c},
	{0x370c, 0x42},
	{0x370d, 0xa4},
	{0x370e, 0x14},
	{0x370f, 0x0a},
	{0x3710, 0x15},
	{0x3711, 0x0a},
	{0x3712, 0xa2},
	{0x3713, 0x00},
	{0x371e, 0x2a},
	{0x371f, 0x13},
	{0x3714, 0x00},
	{0x3717, 0x00},
	{0x3719, 0x00},
	{0x371c, 0x04},
	{0x3720, 0xaa},
	{0x3721, 0x10},
	{0x3722, 0x50},
	{0x3726, 0x22},
	{0x3727, 0x44},
	{0x3728, 0x40},
	{0x3729, 0x00},
	{0x372b, 0x00},
	{0x372c, 0x92},
	{0x372d, 0x0c},
	{0x372e, 0x22},
	{0x372f, 0x91},
	{0x3732, 0x01},
	{0x3733, 0xd0},
	{0x3730, 0x01},
	{0x3731, 0xc8},
	{0x3744, 0x01},
	{0x3745, 0x24},
	{0x3746, 0x00},
	{0x3747, 0xd0},
	{0x3748, 0x27},
	{0x374a, 0x4b},
	{0x374b, 0x44},
	{0x3760, 0xd1},
	{0x3761, 0x52},
	{0x3762, 0xa4},
	{0x3763, 0x14},
	{0x3766, 0x0c},
	{0x3767, 0x25},
	{0x3768, 0x0c},
	{0x3769, 0x24},
	{0x376a, 0x09},
	{0x376b, 0x02},
	{0x376d, 0x01},
	{0x376e, 0x53},
	{0x376f, 0x01},
	{0x378c, 0x08},
	{0x378d, 0x46},
	{0x378e, 0x14},
	{0x378f, 0x02},
	{0x3790, 0xc4},
	{0x3792, 0x64},
	{0x3793, 0x5d},
	{0x3794, 0x29},
	{0x3795, 0x4f},
	{0x3796, 0x43},
	{0x3797, 0x09},
	{0x3798, 0x02},
	{0x3799, 0x33},
	{0x379a, 0x09},
	{0x379b, 0x1e},
	{0x379f, 0x3e},
	{0x37a0, 0x44},
	{0x37a1, 0x00},
	{0x37a2, 0x44},
	{0x37a3, 0x41},
	{0x37a4, 0x88},
	{0x37a5, 0x69},
	{0x37b0, 0x48},
	{0x37b1, 0x20},
	{0x37b2, 0x03},
	{0x37b3, 0x48},
	{0x37b4, 0x02},
	{0x37b5, 0x33},
	{0x37b6, 0x22},
	{0x37b8, 0x02},
	{0x37bc, 0x02},
	{0x37c0, 0x3b},
	{0x37c1, 0xc2},
	{0x37c2, 0x06},
	{0x37c3, 0x06},
	{0x37c5, 0x33},
	{0x37c6, 0x35},
	{0x37c7, 0x00},
	{0x3800, 0x00},
	{0x3801, 0x14},
	{0x3802, 0x00},
	{0x3803, 0x0c},
	{0x3804, 0x10},
	{0x3805, 0x8b},
	{0x3806, 0x0c},
	{0x3807, 0x43},
	{0x3808, 0x16},
	{0x3809, 0x00},
	{0x380a, 0x10},
	{0x380b, 0x80},
	{0x380c, 0x18},
	{0x380d, 0x60},
	{0x380e, 0x12},
	{0x380f, 0xc6},
	{0x3810, 0x00},
	{0x3811, 0x03},
	{0x3813, 0x02},
	{0x3814, 0x11},
	{0x3815, 0x11},
	{0x3820, 0x00},
	{0x3821, 0x04},
	{0x3834, 0x00},
	{0x3835, 0x04},
	{0x3836, 0x18},
	{0x3837, 0x02},
	{0x382f, 0x84},
	{0x383c, 0xc8},
	{0x383d, 0xff},
	{0x3842, 0x00},
	{0x384b, 0x00},
	{0x3d85, 0x16},
	{0x3f00, 0x12},
	{0x4000, 0x17},
	{0x4001, 0x60},
	{0x4001, 0x60},
	{0x4008, 0x00},
	{0x4009, 0x13},
	{0x400f, 0x00},
	{0x4011, 0xfb},
	{0x4017, 0x08},
	{0x4018, 0x00},
	{0x401a, 0x4e},
	{0x4019, 0x18},
	{0x4020, 0x08},
	{0x4022, 0x08},
	{0x4024, 0x08},
	{0x4026, 0x08},
	{0x4028, 0x08},
	{0x402a, 0x08},
	{0x402c, 0x08},
	{0x402e, 0x08},
	{0x4030, 0x08},
	{0x4032, 0x08},
	{0x4034, 0x08},
	{0x4036, 0x08},
	{0x4038, 0x08},
	{0x403a, 0x08},
	{0x403c, 0x08},
	{0x403e, 0x08},
	{0x405c, 0x3f},
	{0x4066, 0x04},
	{0x4051, 0x03},
	{0x4052, 0x00},
	{0x4053, 0x80},
	{0x4054, 0x00},
	{0x4055, 0x80},
	{0x4056, 0x00},
	{0x4057, 0x80},
	{0x4058, 0x00},
	{0x4059, 0x80},
	{0x4202, 0x00},
	{0x4203, 0x01},
	{0x430b, 0xff},
	{0x430d, 0x00},
	{0x4500, 0x72},
	{0x4605, 0x00},
	{0x4640, 0x01},
	{0x4641, 0x04},
	{0x4645, 0x00},
	{0x4800, 0x04},
	{0x4809, 0x2b},
	{0x4813, 0x90},
	{0x4817, 0x04},
	{0x4833, 0x18},
	{0x4837, 0x0A},
	{0x484b, 0x01},
	{0x4850, 0x5c},
	{0x4852, 0x27},
	{0x4856, 0x5c},
	{0x4857, 0x55},
	{0x486a, 0xaa},
	{0x486e, 0x03},
	{0x486f, 0x55},
	{0x4875, 0xf0},
	{0x4b04, 0x80},
	{0x4b06, 0x00},
	{0x4c01, 0xdf},
	{0x4e00, 0x04},
	{0x4e17, 0x04},
	{0x4e33, 0x18},
	{0x4e37, 0x11},
	{0x4e4b, 0x01},
	{0x4e50, 0x5c},
	{0x4e52, 0x27},
	{0x4e56, 0x5c},
	{0x4e57, 0x55},
	{0x4e6a, 0xaa},
	{0x4e6e, 0x03},
	{0x4e6f, 0x55},
	{0x4e75, 0xf0},
	{0x5000, 0x99},
	{0x5001, 0x42},
	{0x5002, 0x04},
	{0x5003, 0x01},
	{0x5004, 0x00},
	{0x5005, 0x00},
	{0x501d, 0x00},
	{0x501f, 0x06},
	{0x5021, 0x00},
	{0x5022, 0x13},
	{0x5061, 0xff},
	{0x5062, 0xff},
	{0x5063, 0xff},
	{0x5064, 0xff},
	{0x5280, 0x00},
	{0x5282, 0x00},
	{0x5283, 0x01},
	{0x5200, 0x00},
	{0x5201, 0x71},
	{0x5203, 0x04},
	{0x5204, 0x00},
	{0x5205, 0x88},
	{0x5209, 0x00},
	{0x520a, 0x80},
	{0x520b, 0x04},
	{0x520c, 0x01},
	{0x5210, 0x10},
	{0x5211, 0xa0},
	{0x5292, 0x00},
	{0x5500, 0x00},
	{0x5501, 0x00},
	{0x5502, 0x00},
	{0x5503, 0x00},
	{0x5504, 0x00},
	{0x5505, 0x00},
	{0x5506, 0x00},
	{0x5507, 0x00},
	{0x5508, 0x00},
	{0x5509, 0x00},
	{0x550a, 0x00},
	{0x550b, 0x00},
	{0x550c, 0x00},
	{0x550d, 0x00},
	{0x550e, 0x00},
	{0x550f, 0x00},
	{0x5510, 0x04},
	{0x5511, 0x04},
	{0x5512, 0x04},
	{0x5513, 0x04},
	{0x5514, 0x08},
	{0x5515, 0x08},
	{0x5516, 0x08},
	{0x5517, 0x08},
	{0x5518, 0x00},
	{0x5519, 0x00},
	{0x551a, 0x00},
	{0x551b, 0x00},
	{0x551c, 0x00},
	{0x551d, 0x00},
	{0x551e, 0x00},
	{0x551f, 0x00},
	{0x5520, 0x00},
	{0x5521, 0x00},
	{0x5522, 0x00},
	{0x5523, 0x00},
	{0x5524, 0x00},
	{0x5525, 0x00},
	{0x5526, 0x00},
	{0x5527, 0x00},
	{0x5528, 0x00},
	{0x5529, 0x00},
	{0x552a, 0x00},
	{0x552b, 0x00},
	{0x552c, 0x00},
	{0x552d, 0x00},
	{0x552e, 0x00},
	{0x552f, 0x00},
	{0x5530, 0x04},
	{0x5531, 0x04},
	{0x5532, 0x04},
	{0x5533, 0x04},
	{0x5534, 0x08},
	{0x5535, 0x08},
	{0x5536, 0x08},
	{0x5537, 0x08},
	{0x5538, 0x00},
	{0x5539, 0x00},
	{0x553a, 0x00},
	{0x553b, 0x00},
	{0x553c, 0x00},
	{0x553d, 0x00},
	{0x553e, 0x00},
	{0x553f, 0x00},
	{0x5540, 0x00},
	{0x5541, 0x00},
	{0x5542, 0x00},
	{0x5543, 0x00},
	{0x5544, 0x00},
	{0x5545, 0x00},
	{0x5546, 0x00},
	{0x5547, 0x00},
	{0x5548, 0x00},
	{0x5549, 0x00},
	{0x554a, 0x00},
	{0x554b, 0x00},
	{0x554c, 0x00},
	{0x554d, 0x00},
	{0x554e, 0x00},
	{0x554f, 0x00},
	{0x5550, 0x04},
	{0x5551, 0x04},
	{0x5552, 0x04},
	{0x5553, 0x04},
	{0x5554, 0x08},
	{0x5555, 0x08},
	{0x5556, 0x08},
	{0x5557, 0x08},
	{0x5558, 0x00},
	{0x5559, 0x00},
	{0x555a, 0x00},
	{0x555b, 0x00},
	{0x555c, 0x00},
	{0x555d, 0x00},
	{0x555e, 0x00},
	{0x555f, 0x00},
	{0x5560, 0x00},
	{0x5561, 0x00},
	{0x5562, 0x00},
	{0x5563, 0x00},
	{0x5564, 0x00},
	{0x5565, 0x00},
	{0x5566, 0x00},
	{0x5567, 0x00},
	{0x5568, 0x00},
	{0x5569, 0x00},
	{0x556a, 0x00},
	{0x556b, 0x00},
	{0x556c, 0x00},
	{0x556d, 0x00},
	{0x556e, 0x00},
	{0x556f, 0x00},
	{0x5570, 0x04},
	{0x5571, 0x04},
	{0x5572, 0x04},
	{0x5573, 0x04},
	{0x5574, 0x08},
	{0x5575, 0x08},
	{0x5576, 0x08},
	{0x5577, 0x08},
	{0x5578, 0x00},
	{0x5579, 0x00},
	{0x557a, 0x00},
	{0x557b, 0x00},
	{0x557c, 0x00},
	{0x557d, 0x00},
	{0x557e, 0x00},
	{0x557f, 0x00},
	{0x5580, 0x00},
	{0x5581, 0x00},
	{0x5582, 0x00},
	{0x5583, 0x00},
	{0x5584, 0x00},
	{0x5585, 0x00},
	{0x5586, 0x00},
	{0x5587, 0x00},
	{0x5588, 0x00},
	{0x5589, 0x00},
	{0x558a, 0x00},
	{0x558b, 0x00},
	{0x558c, 0x04},
	{0x558d, 0x04},
	{0x558e, 0x04},
	{0x558f, 0x04},
	{0x5590, 0x0e},
	{0x5591, 0x0e},
	{0x5592, 0x0e},
	{0x5593, 0x0e},
	{0x5594, 0x1c},
	{0x5595, 0x1c},
	{0x5596, 0x1c},
	{0x5597, 0x1c},
	{0x5598, 0x08},
	{0x5599, 0x08},
	{0x559a, 0x08},
	{0x559b, 0x08},
	{0x559c, 0x00},
	{0x559d, 0x00},
	{0x559e, 0x00},
	{0x559f, 0x00},
	{0x55a0, 0x00},
	{0x55a1, 0x00},
	{0x55a2, 0x00},
	{0x55a3, 0x00},
	{0x55a4, 0x00},
	{0x55a5, 0x00},
	{0x55a6, 0x00},
	{0x55a7, 0x00},
	{0x55a8, 0x00},
	{0x55a9, 0x00},
	{0x55aa, 0x00},
	{0x55ab, 0x00},
	{0x55ac, 0x04},
	{0x55ad, 0x04},
	{0x55ae, 0x04},
	{0x55af, 0x04},
	{0x55b0, 0x0e},
	{0x55b1, 0x0e},
	{0x55b2, 0x0e},
	{0x55b3, 0x0e},
	{0x55b4, 0x1c},
	{0x55b5, 0x1c},
	{0x55b6, 0x1c},
	{0x55b7, 0x1c},
	{0x55b8, 0x08},
	{0x55b9, 0x08},
	{0x55ba, 0x08},
	{0x55bb, 0x08},
	{0x55bc, 0x00},
	{0x55bd, 0x00},
	{0x55be, 0x00},
	{0x55bf, 0x00},
	{0x55c0, 0x00},
	{0x55c1, 0x00},
	{0x55c2, 0x00},
	{0x55c3, 0x00},
	{0x55c4, 0x00},
	{0x55c5, 0x00},
	{0x55c6, 0x00},
	{0x55c7, 0x00},
	{0x55c8, 0x00},
	{0x55c9, 0x00},
	{0x55ca, 0x00},
	{0x55cb, 0x00},
	{0x55cc, 0x04},
	{0x55cd, 0x04},
	{0x55ce, 0x04},
	{0x55cf, 0x04},
	{0x55d0, 0x0e},
	{0x55d1, 0x0e},
	{0x55d2, 0x0e},
	{0x55d3, 0x0e},
	{0x55d4, 0x1c},
	{0x55d5, 0x1c},
	{0x55d6, 0x1c},
	{0x55d7, 0x1c},
	{0x55d8, 0x08},
	{0x55d9, 0x08},
	{0x55da, 0x08},
	{0x55db, 0x08},
	{0x55dc, 0x00},
	{0x55dd, 0x00},
	{0x55de, 0x00},
	{0x55df, 0x00},
	{0x55e0, 0x00},
	{0x55e1, 0x00},
	{0x55e2, 0x00},
	{0x55e3, 0x00},
	{0x55e4, 0x00},
	{0x55e5, 0x00},
	{0x55e6, 0x00},
	{0x55e7, 0x00},
	{0x55e8, 0x00},
	{0x55e9, 0x00},
	{0x55ea, 0x00},
	{0x55eb, 0x00},
	{0x55ec, 0x04},
	{0x55ed, 0x04},
	{0x55ee, 0x04},
	{0x55ef, 0x04},
	{0x55f0, 0x0e},
	{0x55f1, 0x0e},
	{0x55f2, 0x0e},
	{0x55f3, 0x0e},
	{0x55f4, 0x1c},
	{0x55f5, 0x1c},
	{0x55f6, 0x1c},
	{0x55f7, 0x1c},
	{0x55f8, 0x08},
	{0x55f9, 0x08},
	{0x55fa, 0x08},
	{0x55fb, 0x08},
	{0x55fc, 0x00},
	{0x55fd, 0x00},
	{0x55fe, 0x00},
	{0x55ff, 0x00},
	{0x567b, 0x00},
	{0x5690, 0x00},
	{0x5691, 0x00},
	{0x5692, 0x00},
	{0x5693, 0x0a},
	{0x5694, 0xc0},
	{0x5696, 0x06},
	{0x5697, 0x0a},
	{0x5698, 0x00},
	{0x5699, 0x1c},
	{0x569a, 0x16},
	{0x569b, 0x04},
	{0x569c, 0x00},
	{0x569d, 0x1c},
	{0x569e, 0x10},
	{0x569f, 0x84},
	{0x56a0, 0x36},
	{0x56a1, 0x50},
	{0x56a2, 0x16},
	{0x56a3, 0x20},
	{0x56a4, 0x10},
	{0x56a5, 0xa0},
	{0x5c80, 0x06},
	{0x5c81, 0x80},
	{0x5c82, 0x09},
	{0x5c83, 0x5f},
	{0x5d00, 0x01},
	{0x5d01, 0x00},
	{0x5d02, 0x01},
	{0x5d03, 0x00},
	{0x5d04, 0x02},
	{0x5d05, 0x00},
	{0x5d06, 0x02},
	{0x5d07, 0x00},
	{0x5d08, 0x70},
	{0x5d09, 0x74},
	{0x5d0a, 0x78},
	{0x5d0b, 0x7c},
	{0x5d0c, 0x80},
	{0x5d0d, 0x80},
	{0x5d0e, 0x7c},
	{0x5d0f, 0x78},
	{0x5d10, 0x74},
	{0x5d11, 0x70},
	{0x5d12, 0x98},
	{0x5d13, 0x96},
	{0x5d14, 0x63},
	{0x5d15, 0x3a},
	{0x5d16, 0x38},
	{0x5d17, 0x39},
	{0x5d18, 0x37},
	{0x5d19, 0x53},
	{0x5d1a, 0x8b},
	{0x5d1b, 0x9d},
	{0x5d24, 0x00},
	{0x5d25, 0x00},
	{0x5d26, 0x00},
	{0x5d27, 0x0a},
	{0x5d28, 0xc0},
	{0x5d2a, 0x00},
	{0x5d2b, 0x1c},
	{0x5d2c, 0x16},
	{0x5d2d, 0x04},
	{0x5d2e, 0x00},
	{0x5d2f, 0x1c},
	{0x5d30, 0x10},
	{0x5d31, 0x84},
	{0x5d32, 0x10},
	{0x5d34, 0x16},
	{0x5d35, 0x20},
	{0x5d36, 0x10},
	{0x5d37, 0xa0},
	{0x5d38, 0x5c},
	{0x5d39, 0x7b},
	{0x5d1c, 0x00},
	{0x5d1d, 0x1c},
	{0x5d1e, 0x00},
	{0x5d1f, 0x1c},
	{0x5d20, 0x15},
	{0x5d21, 0xe0},
	{0x5d22, 0x10},
	{0x5d23, 0x40},
	{0x5d29, 0x40},
	{0x3008, 0x01},
	{0x3663, 0x60},
	{0x3002, 0x01},
	{0x3c00, 0x3c},
	{0x3025, 0x03},
	{0x3668, 0xf0},
	{0x3400, 0x04},
	{OV23850_TABLE_END, 0x00}
};

static ov23850_reg mode_5632x3168_30fps[] = {
	{0x0316, 0x1e},
	{0x0317, 0x00},
	{0x0318, 0x03},
	{0x031c, 0x01},
	{0x031d, 0x02},
	{0x031e, 0x09},
	{0x2b05, 0x02},
	{0x2b06, 0x87},
	{0x2b07, 0x01},
	{0x2b08, 0xa8},
	{0x0320, 0x02},
	{0x3002, 0x00},
	{0x300f, 0x11},
	{0x3010, 0x01},
	{0x3012, 0x41},
	{0x3016, 0xd2},
	{0x3018, 0x70},
	{0x3019, 0xc3},
	{0x301b, 0x96},
	{0x3022, 0x0f},
	{0x3023, 0xb4},
	{0x3031, 0x91},
	{0x3034, 0x41},
	{0x340c, 0xff},
	{0x3501, 0x0D},
	{0x3502, 0x28},
	{0x3503, 0x00},
	{0x3507, 0x00},
	{0x3508, 0x00},
	{0x3509, 0x12},
	{0x350a, 0x00},
	{0x350b, 0x80},
	{0x350f, 0x10},
	{0x3541, 0x02},
	{0x3542, 0x00},
	{0x3543, 0x00},
	{0x3547, 0x00},
	{0x3548, 0x00},
	{0x3549, 0x12},
	{0x354b, 0x10},
	{0x354f, 0x10},
	{0x3601, 0xa4},
	{0x3603, 0x97},
	{0x3604, 0x02},
	{0x3605, 0xf2},
	{0x3606, 0xe8},
	{0x3607, 0x11},
	{0x360a, 0x34},
	{0x360c, 0x13},
	{0x3618, 0xcc},
	{0x3620, 0x50},
	{0x3621, 0x99},
	{0x3622, 0x7d},
	{0x3624, 0x05},
	{0x362a, 0x25},
	{0x3650, 0x04},
	{0x3660, 0xc0},
	{0x3661, 0x00},
	{0x3662, 0x00},
	{0x3664, 0x88},
	{0x3667, 0x00},
	{0x366a, 0x5c},
	{0x366c, 0x80},
	{0x3700, 0x62},
	{0x3701, 0x08},
	{0x3702, 0x10},
	{0x3703, 0x3e},
	{0x3704, 0x26},
	{0x3705, 0x01},
	{0x3706, 0x3a},
	{0x3707, 0xc4},
	{0x3708, 0x3c},
	{0x3709, 0x1c},
	{0x370a, 0x23},
	{0x370b, 0x2c},
	{0x370c, 0x42},
	{0x370d, 0xa4},
	{0x370e, 0x14},
	{0x370f, 0x0a},
	{0x3710, 0x15},
	{0x3711, 0x0a},
	{0x3712, 0xa2},
	{0x3713, 0x00},
	{0x371e, 0x2a},
	{0x371f, 0x13},
	{0x3714, 0x00},
	{0x3717, 0x00},
	{0x3719, 0x00},
	{0x371c, 0x04},
	{0x3720, 0xaa},
	{0x3721, 0x10},
	{0x3722, 0x50},
	{0x3725, 0xf0},
	{0x3726, 0x22},
	{0x3727, 0x44},
	{0x3728, 0x40},
	{0x3729, 0x00},
	{0x372b, 0x00},
	{0x372c, 0x92},
	{0x372d, 0x0c},
	{0x372e, 0x22},
	{0x372f, 0x91},
	{0x3732, 0x01},
	{0x3733, 0xd0},
	{0x3730, 0x01},
	{0x3731, 0xc8},
	{0x3744, 0x01},
	{0x3745, 0x24},
	{0x3746, 0x00},
	{0x3747, 0xd0},
	{0x3748, 0x27},
	{0x374a, 0x4b},
	{0x374b, 0x44},
	{0x3760, 0xd1},
	{0x3761, 0x52},
	{0x3762, 0xa4},
	{0x3763, 0x14},
	{0x3766, 0x0c},
	{0x3767, 0x25},
	{0x3768, 0x0c},
	{0x3769, 0x24},
	{0x376a, 0x09},
	{0x376b, 0x02},
	{0x376d, 0x01},
	{0x376e, 0x53},
	{0x376f, 0x01},
	{0x378c, 0x08},
	{0x378d, 0x46},
	{0x378e, 0x14},
	{0x378f, 0x02},
	{0x3790, 0xc4},
	{0x3792, 0x64},
	{0x3793, 0x5d},
	{0x3794, 0x29},
	{0x3795, 0x4f},
	{0x3796, 0x43},
	{0x3797, 0x09},
	{0x3798, 0x02},
	{0x3799, 0x33},
	{0x379a, 0x09},
	{0x379b, 0x1e},
	{0x379f, 0x3e},
	{0x37a0, 0x44},
	{0x37a1, 0x00},
	{0x37a2, 0x44},
	{0x37a3, 0x41},
	{0x37a4, 0x88},
	{0x37a5, 0x69},
	{0x37b0, 0x48},
	{0x37b1, 0x20},
	{0x37b2, 0x03},
	{0x37b3, 0x48},
	{0x37b4, 0x02},
	{0x37b5, 0x33},
	{0x37b6, 0x22},
	{0x37b8, 0x02},
	{0x37bc, 0x02},
	{0x37c0, 0x3b},
	{0x37c1, 0xc2},
	{0x37c2, 0x06},
	{0x37c3, 0x06},
	{0x37c5, 0x33},
	{0x37c6, 0x35},
	{0x37c7, 0x00},
	{0x3800, 0x00},
	{0x3801, 0x14},
	{0x3802, 0x00},
	{0x3803, 0x0c},
	{0x3804, 0x10},
	{0x3805, 0x8b},
	{0x3806, 0x0c},
	{0x3807, 0x43},
	{0x3808, 0x16},
	{0x3809, 0x00},
	{0x380a, 0x0C},
	{0x380b, 0x60},
	{0x380c, 0x1B},
	{0x380d, 0xC4},
	{0x380e, 0x0D},
	{0x380f, 0x30},
	{0x3810, 0x00},
	{0x3811, 0x03},
	{0x3813, 0x06},
	{0x3814, 0x11},
	{0x3815, 0x11},
	{0x3820, 0x00},
	{0x3821, 0x04},
	{0x3834, 0x00},
	{0x3835, 0x04},
	{0x3836, 0x18},
	{0x3837, 0x02},
	{0x382f, 0x84},
	{0x383c, 0xc8},
	{0x383d, 0xff},
	{0x3842, 0x00},
	{0x384b, 0x00},
	{0x3d85, 0x16},
	{0x3d8c, 0x77},
	{0x3d8d, 0x10},
	{0x3f00, 0x52},
	{0x4000, 0x17},
	{0x4001, 0x60},
	{0x4001, 0x60},
	{0x4008, 0x00},
	{0x4009, 0x13},
	{0x400f, 0x00},
	{0x4011, 0xfb},
	{0x4017, 0x08},
	{0x4018, 0x00},
	{0x401a, 0xce},
	{0x4019, 0x18},
	{0x4020, 0x08},
	{0x4022, 0x08},
	{0x4024, 0x08},
	{0x4026, 0x08},
	{0x4028, 0x08},
	{0x402a, 0x08},
	{0x402c, 0x08},
	{0x402e, 0x08},
	{0x4030, 0x08},
	{0x4032, 0x08},
	{0x4034, 0x08},
	{0x4036, 0x08},
	{0x4038, 0x08},
	{0x403a, 0x08},
	{0x403c, 0x08},
	{0x403e, 0x08},
	{0x405c, 0x3f},
	{0x4066, 0x04},
	{0x4051, 0x03},
	{0x4052, 0x00},
	{0x4053, 0x80},
	{0x4054, 0x00},
	{0x4055, 0x80},
	{0x4056, 0x00},
	{0x4057, 0x80},
	{0x4058, 0x00},
	{0x4059, 0x80},
	{0x4202, 0x00},
	{0x4203, 0x01},
	{0x430b, 0xff},
	{0x430d, 0x00},
	{0x4500, 0x72},
	{0x4605, 0x00},
	{0x4640, 0x01},
	{0x4641, 0x04},
	{0x4645, 0x00},
	{0x4800, 0x04},
	{0x4809, 0x2b},
	{0x4813, 0x90},
	{0x4817, 0x04},
	{0x4833, 0x18},
	{0x4837, 0x0A},
	{0x484b, 0x01},
	{0x4850, 0x5c},
	{0x4852, 0x27},
	{0x4856, 0x5c},
	{0x4857, 0x55},
	{0x486a, 0xaa},
	{0x486e, 0x03},
	{0x486f, 0x55},
	{0x4875, 0xf0},
	{0x4b04, 0x80},
	{0x4b05, 0xb3},
	{0x4b06, 0x00},
	{0x4c01, 0xdf},
	{0x4d00, 0x04},
	{0x4d01, 0xf0},
	{0x4d02, 0xb8},
	{0x4d03, 0xf2},
	{0x4d04, 0x88},
	{0x4d05, 0x9d},
	{0x4e00, 0x04},
	{0x4e17, 0x04},
	{0x4e33, 0x18},
	{0x4e37, 0x11},
	{0x4e4b, 0x01},
	{0x4e50, 0x5c},
	{0x4e52, 0x27},
	{0x4e56, 0x5c},
	{0x4e57, 0x55},
	{0x4e6a, 0xaa},
	{0x4e6e, 0x03},
	{0x4e6f, 0x55},
	{0x4e75, 0xf0},
	{0x5000, 0x9b},
	{0x5001, 0x42},
	{0x5002, 0x10},
	{0x5003, 0x01},
	{0x5004, 0x00},
	{0x5005, 0x00},
	{0x501d, 0x00},
	{0x501f, 0x06},
	{0x5020, 0x03},
	{0x5021, 0x00},
	{0x5022, 0x13},
	{0x5061, 0xff},
	{0x5062, 0xff},
	{0x5063, 0xff},
	{0x5064, 0xff},
	{0x506f, 0x00},
	{0x5280, 0x00},
	{0x5282, 0x00},
	{0x5283, 0x01},
	{0x5200, 0x00},
	{0x5201, 0x71},
	{0x5203, 0x04},
	{0x5204, 0x00},
	{0x5205, 0x88},
	{0x5209, 0x00},
	{0x520a, 0x80},
	{0x520b, 0x04},
	{0x520c, 0x01},
	{0x5210, 0x10},
	{0x5211, 0xa0},
	{0x5292, 0x04},
	{0x5500, 0x00},
	{0x5501, 0x00},
	{0x5502, 0x00},
	{0x5503, 0x00},
	{0x5504, 0x00},
	{0x5505, 0x00},
	{0x5506, 0x00},
	{0x5507, 0x00},
	{0x5508, 0x10},
	{0x5509, 0x00},
	{0x550a, 0x10},
	{0x550b, 0x00},
	{0x550c, 0x20},
	{0x550d, 0x00},
	{0x550e, 0x20},
	{0x550f, 0x00},
	{0x5510, 0x00},
	{0x5511, 0x00},
	{0x5512, 0x00},
	{0x5513, 0x00},
	{0x5514, 0x00},
	{0x5515, 0x00},
	{0x5516, 0x00},
	{0x5517, 0x00},
	{0x5518, 0x00},
	{0x5519, 0x00},
	{0x551a, 0x00},
	{0x551b, 0x00},
	{0x551c, 0x00},
	{0x551d, 0x00},
	{0x551e, 0x00},
	{0x551f, 0x00},
	{0x5520, 0x00},
	{0x5521, 0x00},
	{0x5522, 0x00},
	{0x5523, 0x00},
	{0x5524, 0x00},
	{0x5525, 0x00},
	{0x5526, 0x00},
	{0x5527, 0x00},
	{0x5528, 0x00},
	{0x5529, 0x10},
	{0x552a, 0x00},
	{0x552b, 0x10},
	{0x552c, 0x00},
	{0x552d, 0x20},
	{0x552e, 0x00},
	{0x552f, 0x20},
	{0x5530, 0x00},
	{0x5531, 0x00},
	{0x5532, 0x00},
	{0x5533, 0x00},
	{0x5534, 0x00},
	{0x5535, 0x00},
	{0x5536, 0x00},
	{0x5537, 0x00},
	{0x5538, 0x00},
	{0x5539, 0x00},
	{0x553a, 0x00},
	{0x553b, 0x00},
	{0x553c, 0x00},
	{0x553d, 0x00},
	{0x553e, 0x00},
	{0x553f, 0x00},
	{0x5540, 0x00},
	{0x5541, 0x00},
	{0x5542, 0x00},
	{0x5543, 0x00},
	{0x5544, 0x00},
	{0x5545, 0x00},
	{0x5546, 0x00},
	{0x5547, 0x00},
	{0x5548, 0x01},
	{0x5549, 0x00},
	{0x554a, 0x01},
	{0x554b, 0x00},
	{0x554c, 0x02},
	{0x554d, 0x00},
	{0x554e, 0x02},
	{0x554f, 0x00},
	{0x5550, 0x00},
	{0x5551, 0x00},
	{0x5552, 0x00},
	{0x5553, 0x00},
	{0x5554, 0x00},
	{0x5555, 0x00},
	{0x5556, 0x00},
	{0x5557, 0x00},
	{0x5558, 0x00},
	{0x5559, 0x00},
	{0x555a, 0x00},
	{0x555b, 0x00},
	{0x555c, 0x00},
	{0x555d, 0x00},
	{0x555e, 0x00},
	{0x555f, 0x00},
	{0x5560, 0x00},
	{0x5561, 0x00},
	{0x5562, 0x00},
	{0x5563, 0x00},
	{0x5564, 0x00},
	{0x5565, 0x00},
	{0x5566, 0x00},
	{0x5567, 0x00},
	{0x5568, 0x00},
	{0x5569, 0x10},
	{0x556a, 0x00},
	{0x556b, 0x10},
	{0x556c, 0x00},
	{0x556d, 0x20},
	{0x556e, 0x00},
	{0x556f, 0x20},
	{0x5570, 0x00},
	{0x5571, 0x00},
	{0x5572, 0x00},
	{0x5573, 0x00},
	{0x5574, 0x00},
	{0x5575, 0x00},
	{0x5576, 0x00},
	{0x5577, 0x00},
	{0x5578, 0x00},
	{0x5579, 0x00},
	{0x557a, 0x00},
	{0x557b, 0x00},
	{0x557c, 0x00},
	{0x557d, 0x00},
	{0x557e, 0x00},
	{0x557f, 0x00},
	{0x5580, 0x00},
	{0x5581, 0x00},
	{0x5582, 0x00},
	{0x5583, 0x00},
	{0x5584, 0x10},
	{0x5585, 0x00},
	{0x5586, 0x10},
	{0x5587, 0x00},
	{0x5588, 0x38},
	{0x5589, 0x00},
	{0x558a, 0x38},
	{0x558b, 0x00},
	{0x558c, 0x70},
	{0x558d, 0x00},
	{0x558e, 0x70},
	{0x558f, 0x00},
	{0x5590, 0x20},
	{0x5591, 0x00},
	{0x5592, 0x20},
	{0x5593, 0x00},
	{0x5594, 0x00},
	{0x5595, 0x00},
	{0x5596, 0x00},
	{0x5597, 0x00},
	{0x5598, 0x00},
	{0x5599, 0x00},
	{0x559a, 0x00},
	{0x559b, 0x00},
	{0x559c, 0x00},
	{0x559d, 0x00},
	{0x559e, 0x00},
	{0x559f, 0x00},
	{0x55a0, 0x00},
	{0x55a1, 0x00},
	{0x55a2, 0x00},
	{0x55a3, 0x00},
	{0x55a4, 0x00},
	{0x55a5, 0x10},
	{0x55a6, 0x00},
	{0x55a7, 0x10},
	{0x55a8, 0x00},
	{0x55a9, 0x38},
	{0x55aa, 0x00},
	{0x55ab, 0x38},
	{0x55ac, 0x00},
	{0x55ad, 0x70},
	{0x55ae, 0x00},
	{0x55af, 0x70},
	{0x55b0, 0x00},
	{0x55b1, 0x20},
	{0x55b2, 0x00},
	{0x55b3, 0x20},
	{0x55b4, 0x00},
	{0x55b5, 0x00},
	{0x55b6, 0x00},
	{0x55b7, 0x00},
	{0x55b8, 0x00},
	{0x55b9, 0x00},
	{0x55ba, 0x00},
	{0x55bb, 0x00},
	{0x55bc, 0x00},
	{0x55bd, 0x00},
	{0x55be, 0x00},
	{0x55bf, 0x00},
	{0x55c0, 0x00},
	{0x55c1, 0x00},
	{0x55c2, 0x00},
	{0x55c3, 0x00},
	{0x55c4, 0x01},
	{0x55c5, 0x00},
	{0x55c6, 0x01},
	{0x55c7, 0x00},
	{0x55c8, 0x03},
	{0x55c9, 0x80},
	{0x55ca, 0x03},
	{0x55cb, 0x80},
	{0x55cc, 0x07},
	{0x55cd, 0x00},
	{0x55ce, 0x07},
	{0x55cf, 0x00},
	{0x55d0, 0x02},
	{0x55d1, 0x00},
	{0x55d2, 0x02},
	{0x55d3, 0x00},
	{0x55d4, 0x00},
	{0x55d5, 0x00},
	{0x55d6, 0x00},
	{0x55d7, 0x00},
	{0x55d8, 0x00},
	{0x55d9, 0x00},
	{0x55da, 0x00},
	{0x55db, 0x00},
	{0x55dc, 0x00},
	{0x55dd, 0x00},
	{0x55de, 0x00},
	{0x55df, 0x00},
	{0x55e0, 0x00},
	{0x55e1, 0x00},
	{0x55e2, 0x00},
	{0x55e3, 0x00},
	{0x55e4, 0x00},
	{0x55e5, 0x10},
	{0x55e6, 0x00},
	{0x55e7, 0x10},
	{0x55e8, 0x00},
	{0x55e9, 0x38},
	{0x55ea, 0x00},
	{0x55eb, 0x38},
	{0x55ec, 0x00},
	{0x55ed, 0x70},
	{0x55ee, 0x00},
	{0x55ef, 0x70},
	{0x55f0, 0x00},
	{0x55f1, 0x20},
	{0x55f2, 0x00},
	{0x55f3, 0x20},
	{0x55f4, 0x00},
	{0x55f5, 0x00},
	{0x55f6, 0x00},
	{0x55f7, 0x00},
	{0x55f8, 0x00},
	{0x55f9, 0x00},
	{0x55fa, 0x00},
	{0x55fb, 0x00},
	{0x55fc, 0x00},
	{0x55fd, 0x00},
	{0x55fe, 0x00},
	{0x55ff, 0x00},
	{0x5600, 0x30},
	{0x5601, 0x00},
	{0x5602, 0x00},
	{0x5603, 0x00},
	{0x5604, 0x00},
	{0x5605, 0x00},
	{0x5606, 0x00},
	{0x5607, 0x01},
	{0x5608, 0x01},
	{0x5609, 0x01},
	{0x560f, 0xfc},
	{0x5610, 0xf0},
	{0x5611, 0x10},
	{0x562f, 0xfc},
	{0x5630, 0xf0},
	{0x5631, 0x10},
	{0x564f, 0xfc},
	{0x5650, 0xf0},
	{0x5651, 0x10},
	{0x566f, 0xfc},
	{0x5670, 0xf0},
	{0x5671, 0x10},
	{0x567b, 0x40},
	{0x5690, 0x00},
	{0x5691, 0x00},
	{0x5692, 0x00},
	{0x5693, 0x0a},
	{0x5694, 0x80},
	{0x5696, 0x06},
	{0x5697, 0x0a},
	{0x5698, 0x00},
	{0x5699, 0x90},
	{0x569a, 0x15},
	{0x569b, 0x90},
	{0x569c, 0x00},
	{0x569d, 0x50},
	{0x569e, 0x10},
	{0x569f, 0x50},
	{0x56a0, 0x36},
	{0x56a1, 0x50},
	{0x56a2, 0x16},
	{0x56a3, 0x20},
	{0x56a4, 0x10},
	{0x56a5, 0xa0},
	{0x5c80, 0x06},
	{0x5c81, 0x80},
	{0x5c82, 0x09},
	{0x5c83, 0x5f},
	{0x5d04, 0x01},
	{0x5d05, 0x1a},
	{0x5d06, 0x01},
	{0x5d07, 0x1a},
	{0x5d12, 0xf7},
	{0x5d13, 0xdd},
	{0x5d14, 0x97},
	{0x5d15, 0x69},
	{0x5d16, 0x61},
	{0x5d17, 0x5b},
	{0x5d18, 0x62},
	{0x5d19, 0x8d},
	{0x5d1a, 0xdd},
	{0x5d1b, 0xff},
	{0x5d24, 0x00},
	{0x5d25, 0x00},
	{0x5d26, 0x00},
	{0x5d27, 0x0a},
	{0x5d28, 0x80},
	{0x5d2a, 0x00},
	{0x5d2b, 0x90},
	{0x5d2c, 0x15},
	{0x5d2d, 0x90},
	{0x5d2e, 0x00},
	{0x5d2f, 0x50},
	{0x5d30, 0x10},
	{0x5d31, 0x50},
	{0x5d32, 0x10},
	{0x5d34, 0x36},
	{0x5d35, 0x20},
	{0x5d36, 0x90},
	{0x5d37, 0xa0},
	{0x5d38, 0x5c},
	{0x5d39, 0x7b},
	{0x5d1c, 0x00},
	{0x5d1d, 0x90},
	{0x5d1e, 0x00},
	{0x5d1f, 0x50},
	{0x5d20, 0x15},
	{0x5d21, 0x00},
	{0x5d22, 0x10},
	{0x5d23, 0x00},
	{0x5d29, 0xc0},
	{0x3008, 0x01},
	{0x3663, 0x60},
	{0x3002, 0x01},
	{0x3c00, 0x3c},
	{0x3025, 0x03},
	{0x3668, 0xf0},
	{0x3400, 0x04},
	{OV23850_TABLE_END, 0x00}
};

static ov23850_reg mode_5632x3168_30fps_dpcm[] = {
	{0x0316, 0x1e},
	{0x0317, 0x00},
	{0x0318, 0x03},
	{0x031c, 0x01},
	{0x031d, 0x02},
	{0x031e, 0x08},
	{0x2b05, 0x02},
	{0x2b06, 0x87},
	{0x2b07, 0x01},
	{0x2b08, 0xa8},
	{0x0320, 0x02},
	{0x3002, 0x00},
	{0x300f, 0x11},
	{0x3010, 0x01},
	{0x3012, 0x41},
	{0x3016, 0xd2},
	{0x3018, 0x70},
	{0x3019, 0xe1},
	{0x301b, 0x96},
	{0x3022, 0x0f},
	{0x3023, 0xb4},
	{0x3031, 0x91},
	{0x3034, 0x41},
	{0x340c, 0xff},
	{0x3501, 0x0D},
	{0x3502, 0x28},
	{0x3503, 0x00},
	{0x3507, 0x00},
	{0x3508, 0x00},
	{0x3509, 0x12},
	{0x350a, 0x00},
	{0x350b, 0x80},
	{0x350f, 0x10},
	{0x3541, 0x02},
	{0x3542, 0x00},
	{0x3543, 0x00},
	{0x3547, 0x00},
	{0x3548, 0x00},
	{0x3549, 0x12},
	{0x354b, 0x10},
	{0x354f, 0x10},
	{0x3601, 0xa4},
	{0x3603, 0x97},
	{0x3604, 0x02},
	{0x3605, 0xf2},
	{0x3606, 0xe8},
	{0x3607, 0x11},
	{0x360a, 0x34},
	{0x360c, 0x13},
	{0x3618, 0xcc},
	{0x3620, 0x50},
	{0x3621, 0x99},
	{0x3622, 0x7d},
	{0x3624, 0x05},
	{0x362a, 0x25},
	{0x3650, 0x04},
	{0x3660, 0xc4},
	{0x3661, 0x00},
	{0x3662, 0x00},
	{0x3664, 0x88},
	{0x3667, 0x00},
	{0x366a, 0x5c},
	{0x366c, 0x80},
	{0x3700, 0x62},
	{0x3701, 0x08},
	{0x3702, 0x10},
	{0x3703, 0x3e},
	{0x3704, 0x26},
	{0x3705, 0x01},
	{0x3706, 0x3a},
	{0x3707, 0xc4},
	{0x3708, 0x3c},
	{0x3709, 0x1c},
	{0x370a, 0x23},
	{0x370b, 0x2c},
	{0x370c, 0x42},
	{0x370d, 0xa4},
	{0x370e, 0x14},
	{0x370f, 0x0a},
	{0x3710, 0x15},
	{0x3711, 0x0a},
	{0x3712, 0xa2},
	{0x3713, 0x00},
	{0x371e, 0x2a},
	{0x371f, 0x13},
	{0x3714, 0x00},
	{0x3717, 0x00},
	{0x3719, 0x00},
	{0x371c, 0x04},
	{0x3720, 0xaa},
	{0x3721, 0x10},
	{0x3722, 0x50},
	{0x3725, 0xf0},
	{0x3726, 0x22},
	{0x3727, 0x44},
	{0x3728, 0x40},
	{0x3729, 0x00},
	{0x372b, 0x00},
	{0x372c, 0x92},
	{0x372d, 0x0c},
	{0x372e, 0x22},
	{0x372f, 0x91},
	{0x3732, 0x01},
	{0x3733, 0xd0},
	{0x3730, 0x01},
	{0x3731, 0xc8},
	{0x3744, 0x01},
	{0x3745, 0x24},
	{0x3746, 0x00},
	{0x3747, 0xd0},
	{0x3748, 0x27},
	{0x374a, 0x4b},
	{0x374b, 0x44},
	{0x3760, 0xd1},
	{0x3761, 0x52},
	{0x3762, 0xa4},
	{0x3763, 0x14},
	{0x3766, 0x0c},
	{0x3767, 0x25},
	{0x3768, 0x0c},
	{0x3769, 0x24},
	{0x376a, 0x09},
	{0x376b, 0x02},
	{0x376d, 0x01},
	{0x376e, 0x53},
	{0x376f, 0x01},
	{0x378c, 0x08},
	{0x378d, 0x46},
	{0x378e, 0x14},
	{0x378f, 0x02},
	{0x3790, 0xc4},
	{0x3792, 0x64},
	{0x3793, 0x5d},
	{0x3794, 0x29},
	{0x3795, 0x4f},
	{0x3796, 0x43},
	{0x3797, 0x09},
	{0x3798, 0x02},
	{0x3799, 0x33},
	{0x379a, 0x09},
	{0x379b, 0x1e},
	{0x379f, 0x3e},
	{0x37a0, 0x44},
	{0x37a1, 0x00},
	{0x37a2, 0x44},
	{0x37a3, 0x41},
	{0x37a4, 0x88},
	{0x37a5, 0x69},
	{0x37b0, 0x48},
	{0x37b1, 0x20},
	{0x37b2, 0x03},
	{0x37b3, 0x48},
	{0x37b4, 0x02},
	{0x37b5, 0x33},
	{0x37b6, 0x22},
	{0x37b8, 0x02},
	{0x37bc, 0x02},
	{0x37c0, 0x3b},
	{0x37c1, 0xc2},
	{0x37c2, 0x06},
	{0x37c3, 0x06},
	{0x37c5, 0x33},
	{0x37c6, 0x35},
	{0x37c7, 0x00},
	{0x3800, 0x00},
	{0x3801, 0x14},
	{0x3802, 0x00},
	{0x3803, 0x0c},
	{0x3804, 0x10},
	{0x3805, 0x8b},
	{0x3806, 0x0c},
	{0x3807, 0x43},
	{0x3808, 0x16},
	{0x3809, 0x00},
	{0x380a, 0x0C},
	{0x380b, 0x60},
	{0x380c, 0x1B},
	{0x380d, 0xC4},
	{0x380e, 0x0D},
	{0x380f, 0x30},
	{0x3810, 0x00},
	{0x3811, 0x03},
	{0x3813, 0x06},
	{0x3814, 0x11},
	{0x3815, 0x11},
	{0x3820, 0x00},
	{0x3821, 0x04},
	{0x3834, 0x00},
	{0x3835, 0x04},
	{0x3836, 0x18},
	{0x3837, 0x02},
	{0x382f, 0x84},
	{0x383c, 0xc8},
	{0x383d, 0xff},
	{0x3842, 0x00},
	{0x384b, 0x00},
	{0x3d85, 0x16},
	{0x3d8c, 0x77},
	{0x3d8d, 0x10},
	{0x3f00, 0x52},
	{0x4000, 0x17},
	{0x4001, 0x60},
	{0x4001, 0x60},
	{0x4008, 0x00},
	{0x4009, 0x13},
	{0x400f, 0x00},
	{0x4011, 0xfb},
	{0x4017, 0x08},
	{0x4018, 0x00},
	{0x401a, 0xce},
	{0x4019, 0x18},
	{0x4020, 0x08},
	{0x4022, 0x08},
	{0x4024, 0x08},
	{0x4026, 0x08},
	{0x4028, 0x08},
	{0x402a, 0x08},
	{0x402c, 0x08},
	{0x402e, 0x08},
	{0x4030, 0x08},
	{0x4032, 0x08},
	{0x4034, 0x08},
	{0x4036, 0x08},
	{0x4038, 0x08},
	{0x403a, 0x08},
	{0x403c, 0x08},
	{0x403e, 0x08},
	{0x405c, 0x3f},
	{0x4066, 0x04},
	{0x4051, 0x03},
	{0x4052, 0x00},
	{0x4053, 0x80},
	{0x4054, 0x00},
	{0x4055, 0x80},
	{0x4056, 0x00},
	{0x4057, 0x80},
	{0x4058, 0x00},
	{0x4059, 0x80},
	{0x4202, 0x00},
	{0x4203, 0x01},
	{0x430b, 0xff},
	{0x430d, 0x00},
	{0x4500, 0x72},
	{0x4605, 0x00},
	{0x4640, 0x01},
	{0x4641, 0x04},
	{0x4645, 0x00},
	{0x4800, 0x04},
	{0x4809, 0x2b},
	{0x4813, 0x90},
	{0x4817, 0x04},
	{0x4833, 0x18},
	{0x4837, 0x0A},
	{0x484b, 0x01},
	{0x4850, 0x5c},
	{0x4852, 0x27},
	{0x4856, 0x5c},
	{0x4857, 0x55},
	{0x486a, 0xaa},
	{0x486e, 0x03},
	{0x486f, 0x55},
	{0x4875, 0xf0},
	{0x4b04, 0x80},
	{0x4b05, 0xb3},
	{0x4b06, 0x00},
	{0x4c01, 0xdf},
	{0x4d00, 0x04},
	{0x4d01, 0xf0},
	{0x4d02, 0xb8},
	{0x4d03, 0xf2},
	{0x4d04, 0x88},
	{0x4d05, 0x9d},
	{0x4e00, 0x04},
	{0x4e17, 0x04},
	{0x4e33, 0x18},
	{0x4e37, 0x11},
	{0x4e4b, 0x01},
	{0x4e50, 0x5c},
	{0x4e52, 0x27},
	{0x4e56, 0x5c},
	{0x4e57, 0x55},
	{0x4e6a, 0xaa},
	{0x4e6e, 0x03},
	{0x4e6f, 0x55},
	{0x4e75, 0xf0},
	{0x5000, 0x9b},
	{0x5001, 0x42},
	{0x5002, 0x10},
	{0x5003, 0x01},
	{0x5004, 0x00},
	{0x5005, 0x00},
	{0x501d, 0x00},
	{0x501f, 0x06},
	{0x5020, 0x03},
	{0x5021, 0x00},
	{0x5022, 0x13},
	{0x5061, 0xff},
	{0x5062, 0xff},
	{0x5063, 0xff},
	{0x5064, 0xff},
	{0x506f, 0x00},
	{0x5280, 0x00},
	{0x5282, 0x00},
	{0x5283, 0x01},
	{0x5200, 0x00},
	{0x5201, 0x71},
	{0x5203, 0x04},
	{0x5204, 0x00},
	{0x5205, 0x88},
	{0x5209, 0x00},
	{0x520a, 0x80},
	{0x520b, 0x04},
	{0x520c, 0x01},
	{0x5210, 0x10},
	{0x5211, 0xa0},
	{0x5292, 0x04},
	{0x5500, 0x00},
	{0x5501, 0x00},
	{0x5502, 0x00},
	{0x5503, 0x00},
	{0x5504, 0x00},
	{0x5505, 0x00},
	{0x5506, 0x00},
	{0x5507, 0x00},
	{0x5508, 0x10},
	{0x5509, 0x00},
	{0x550a, 0x10},
	{0x550b, 0x00},
	{0x550c, 0x20},
	{0x550d, 0x00},
	{0x550e, 0x20},
	{0x550f, 0x00},
	{0x5510, 0x00},
	{0x5511, 0x00},
	{0x5512, 0x00},
	{0x5513, 0x00},
	{0x5514, 0x00},
	{0x5515, 0x00},
	{0x5516, 0x00},
	{0x5517, 0x00},
	{0x5518, 0x00},
	{0x5519, 0x00},
	{0x551a, 0x00},
	{0x551b, 0x00},
	{0x551c, 0x00},
	{0x551d, 0x00},
	{0x551e, 0x00},
	{0x551f, 0x00},
	{0x5520, 0x00},
	{0x5521, 0x00},
	{0x5522, 0x00},
	{0x5523, 0x00},
	{0x5524, 0x00},
	{0x5525, 0x00},
	{0x5526, 0x00},
	{0x5527, 0x00},
	{0x5528, 0x00},
	{0x5529, 0x10},
	{0x552a, 0x00},
	{0x552b, 0x10},
	{0x552c, 0x00},
	{0x552d, 0x20},
	{0x552e, 0x00},
	{0x552f, 0x20},
	{0x5530, 0x00},
	{0x5531, 0x00},
	{0x5532, 0x00},
	{0x5533, 0x00},
	{0x5534, 0x00},
	{0x5535, 0x00},
	{0x5536, 0x00},
	{0x5537, 0x00},
	{0x5538, 0x00},
	{0x5539, 0x00},
	{0x553a, 0x00},
	{0x553b, 0x00},
	{0x553c, 0x00},
	{0x553d, 0x00},
	{0x553e, 0x00},
	{0x553f, 0x00},
	{0x5540, 0x00},
	{0x5541, 0x00},
	{0x5542, 0x00},
	{0x5543, 0x00},
	{0x5544, 0x00},
	{0x5545, 0x00},
	{0x5546, 0x00},
	{0x5547, 0x00},
	{0x5548, 0x01},
	{0x5549, 0x00},
	{0x554a, 0x01},
	{0x554b, 0x00},
	{0x554c, 0x02},
	{0x554d, 0x00},
	{0x554e, 0x02},
	{0x554f, 0x00},
	{0x5550, 0x00},
	{0x5551, 0x00},
	{0x5552, 0x00},
	{0x5553, 0x00},
	{0x5554, 0x00},
	{0x5555, 0x00},
	{0x5556, 0x00},
	{0x5557, 0x00},
	{0x5558, 0x00},
	{0x5559, 0x00},
	{0x555a, 0x00},
	{0x555b, 0x00},
	{0x555c, 0x00},
	{0x555d, 0x00},
	{0x555e, 0x00},
	{0x555f, 0x00},
	{0x5560, 0x00},
	{0x5561, 0x00},
	{0x5562, 0x00},
	{0x5563, 0x00},
	{0x5564, 0x00},
	{0x5565, 0x00},
	{0x5566, 0x00},
	{0x5567, 0x00},
	{0x5568, 0x00},
	{0x5569, 0x10},
	{0x556a, 0x00},
	{0x556b, 0x10},
	{0x556c, 0x00},
	{0x556d, 0x20},
	{0x556e, 0x00},
	{0x556f, 0x20},
	{0x5570, 0x00},
	{0x5571, 0x00},
	{0x5572, 0x00},
	{0x5573, 0x00},
	{0x5574, 0x00},
	{0x5575, 0x00},
	{0x5576, 0x00},
	{0x5577, 0x00},
	{0x5578, 0x00},
	{0x5579, 0x00},
	{0x557a, 0x00},
	{0x557b, 0x00},
	{0x557c, 0x00},
	{0x557d, 0x00},
	{0x557e, 0x00},
	{0x557f, 0x00},
	{0x5580, 0x00},
	{0x5581, 0x00},
	{0x5582, 0x00},
	{0x5583, 0x00},
	{0x5584, 0x10},
	{0x5585, 0x00},
	{0x5586, 0x10},
	{0x5587, 0x00},
	{0x5588, 0x38},
	{0x5589, 0x00},
	{0x558a, 0x38},
	{0x558b, 0x00},
	{0x558c, 0x70},
	{0x558d, 0x00},
	{0x558e, 0x70},
	{0x558f, 0x00},
	{0x5590, 0x20},
	{0x5591, 0x00},
	{0x5592, 0x20},
	{0x5593, 0x00},
	{0x5594, 0x00},
	{0x5595, 0x00},
	{0x5596, 0x00},
	{0x5597, 0x00},
	{0x5598, 0x00},
	{0x5599, 0x00},
	{0x559a, 0x00},
	{0x559b, 0x00},
	{0x559c, 0x00},
	{0x559d, 0x00},
	{0x559e, 0x00},
	{0x559f, 0x00},
	{0x55a0, 0x00},
	{0x55a1, 0x00},
	{0x55a2, 0x00},
	{0x55a3, 0x00},
	{0x55a4, 0x00},
	{0x55a5, 0x10},
	{0x55a6, 0x00},
	{0x55a7, 0x10},
	{0x55a8, 0x00},
	{0x55a9, 0x38},
	{0x55aa, 0x00},
	{0x55ab, 0x38},
	{0x55ac, 0x00},
	{0x55ad, 0x70},
	{0x55ae, 0x00},
	{0x55af, 0x70},
	{0x55b0, 0x00},
	{0x55b1, 0x20},
	{0x55b2, 0x00},
	{0x55b3, 0x20},
	{0x55b4, 0x00},
	{0x55b5, 0x00},
	{0x55b6, 0x00},
	{0x55b7, 0x00},
	{0x55b8, 0x00},
	{0x55b9, 0x00},
	{0x55ba, 0x00},
	{0x55bb, 0x00},
	{0x55bc, 0x00},
	{0x55bd, 0x00},
	{0x55be, 0x00},
	{0x55bf, 0x00},
	{0x55c0, 0x00},
	{0x55c1, 0x00},
	{0x55c2, 0x00},
	{0x55c3, 0x00},
	{0x55c4, 0x01},
	{0x55c5, 0x00},
	{0x55c6, 0x01},
	{0x55c7, 0x00},
	{0x55c8, 0x03},
	{0x55c9, 0x80},
	{0x55ca, 0x03},
	{0x55cb, 0x80},
	{0x55cc, 0x07},
	{0x55cd, 0x00},
	{0x55ce, 0x07},
	{0x55cf, 0x00},
	{0x55d0, 0x02},
	{0x55d1, 0x00},
	{0x55d2, 0x02},
	{0x55d3, 0x00},
	{0x55d4, 0x00},
	{0x55d5, 0x00},
	{0x55d6, 0x00},
	{0x55d7, 0x00},
	{0x55d8, 0x00},
	{0x55d9, 0x00},
	{0x55da, 0x00},
	{0x55db, 0x00},
	{0x55dc, 0x00},
	{0x55dd, 0x00},
	{0x55de, 0x00},
	{0x55df, 0x00},
	{0x55e0, 0x00},
	{0x55e1, 0x00},
	{0x55e2, 0x00},
	{0x55e3, 0x00},
	{0x55e4, 0x00},
	{0x55e5, 0x10},
	{0x55e6, 0x00},
	{0x55e7, 0x10},
	{0x55e8, 0x00},
	{0x55e9, 0x38},
	{0x55ea, 0x00},
	{0x55eb, 0x38},
	{0x55ec, 0x00},
	{0x55ed, 0x70},
	{0x55ee, 0x00},
	{0x55ef, 0x70},
	{0x55f0, 0x00},
	{0x55f1, 0x20},
	{0x55f2, 0x00},
	{0x55f3, 0x20},
	{0x55f4, 0x00},
	{0x55f5, 0x00},
	{0x55f6, 0x00},
	{0x55f7, 0x00},
	{0x55f8, 0x00},
	{0x55f9, 0x00},
	{0x55fa, 0x00},
	{0x55fb, 0x00},
	{0x55fc, 0x00},
	{0x55fd, 0x00},
	{0x55fe, 0x00},
	{0x55ff, 0x00},
	{0x5600, 0x30},
	{0x5601, 0x00},
	{0x5602, 0x00},
	{0x5603, 0x00},
	{0x5604, 0x00},
	{0x5605, 0x00},
	{0x5606, 0x00},
	{0x5607, 0x01},
	{0x5608, 0x01},
	{0x5609, 0x01},
	{0x560f, 0xfc},
	{0x5610, 0xf0},
	{0x5611, 0x10},
	{0x562f, 0xfc},
	{0x5630, 0xf0},
	{0x5631, 0x10},
	{0x564f, 0xfc},
	{0x5650, 0xf0},
	{0x5651, 0x10},
	{0x566f, 0xfc},
	{0x5670, 0xf0},
	{0x5671, 0x10},
	{0x567b, 0x40},
	{0x5690, 0x00},
	{0x5691, 0x00},
	{0x5692, 0x00},
	{0x5693, 0x0a},
	{0x5694, 0x80},
	{0x5696, 0x06},
	{0x5697, 0x0a},
	{0x5698, 0x00},
	{0x5699, 0x90},
	{0x569a, 0x15},
	{0x569b, 0x90},
	{0x569c, 0x00},
	{0x569d, 0x50},
	{0x569e, 0x10},
	{0x569f, 0x50},
	{0x56a0, 0x36},
	{0x56a1, 0x50},
	{0x56a2, 0x16},
	{0x56a3, 0x20},
	{0x56a4, 0x10},
	{0x56a5, 0xa0},
	{0x5c80, 0x06},
	{0x5c81, 0x80},
	{0x5c82, 0x09},
	{0x5c83, 0x5f},
	{0x5d04, 0x01},
	{0x5d05, 0x1a},
	{0x5d06, 0x01},
	{0x5d07, 0x1a},
	{0x5d12, 0xf7},
	{0x5d13, 0xdd},
	{0x5d14, 0x97},
	{0x5d15, 0x69},
	{0x5d16, 0x61},
	{0x5d17, 0x5b},
	{0x5d18, 0x62},
	{0x5d19, 0x8d},
	{0x5d1a, 0xdd},
	{0x5d1b, 0xff},
	{0x5d24, 0x00},
	{0x5d25, 0x00},
	{0x5d26, 0x00},
	{0x5d27, 0x0a},
	{0x5d28, 0x80},
	{0x5d2a, 0x00},
	{0x5d2b, 0x90},
	{0x5d2c, 0x15},
	{0x5d2d, 0x90},
	{0x5d2e, 0x00},
	{0x5d2f, 0x50},
	{0x5d30, 0x10},
	{0x5d31, 0x50},
	{0x5d32, 0x10},
	{0x5d34, 0x36},
	{0x5d35, 0x20},
	{0x5d36, 0x90},
	{0x5d37, 0xa0},
	{0x5d38, 0x5c},
	{0x5d39, 0x7b},
	{0x5d1c, 0x00},
	{0x5d1d, 0x90},
	{0x5d1e, 0x00},
	{0x5d1f, 0x50},
	{0x5d20, 0x15},
	{0x5d21, 0x00},
	{0x5d22, 0x10},
	{0x5d23, 0x00},
	{0x5d29, 0xc0},
	{0x3008, 0x01},
	{0x3663, 0x60},
	{0x3002, 0x01},
	{0x3c00, 0x3c},
	{0x3025, 0x03},
	{0x3668, 0xf0},
	{0x3400, 0x04},
	{OV23850_TABLE_END, 0x00}
};

static ov23850_reg mode_table_common[] = {
	{0x301e, 0x00},
	{OV23850_TABLE_WAIT_MS, OV23850_WAIT_MS},
	{0x0103, 0x01},
	{0x0300, 0x00},
	{0x0301, 0x6C},
	{0x0302, 0x10},
	{0x0303, 0x00},
	{0x0304, 0x3A},
	{0x030d, 0x2d},
	{0x030e, 0x00},
	{0x030f, 0x05},
	{0x0312, 0x02},
	{0x0313, 0x11},
	{OV23850_TABLE_END, 0x00},
};

enum {
	OV23850_MODE_5632X4224,
	OV23850_MODE_5632X4224_8FPS,
	OV23850_MODE_5632X4224_8FPS_DPCM,
	OV23850_MODE_5632X4224_24FPS_DPCM,
	OV23850_MODE_5632X3168,
	OV23850_MODE_5632X3168_30FPS_DPCM,

	OV23850_MODE_COMMON,
	OV23850_MODE_START_STREAM,
	OV23850_MODE_STOP_STREAM,
	OV23850_MODE_TEST_PATTERN,
};

static ov23850_reg *mode_table[] = {
	[OV23850_MODE_5632X4224] = mode_5632x4224_20fps,
	[OV23850_MODE_5632X4224_8FPS] = mode_5632x4224_8fps,
	[OV23850_MODE_5632X4224_8FPS_DPCM] = mode_5632x4224_8fps_dpcm,
	[OV23850_MODE_5632X4224_24FPS_DPCM] = mode_5632x4224_24fps_dpcm,
	[OV23850_MODE_5632X3168] = mode_5632x3168_30fps,
	[OV23850_MODE_5632X3168_30FPS_DPCM] = mode_5632x3168_30fps_dpcm,

	[OV23850_MODE_COMMON] = mode_table_common,
	[OV23850_MODE_START_STREAM] = ov23850_start,
	[OV23850_MODE_STOP_STREAM] = ov23850_stop,
	[OV23850_MODE_TEST_PATTERN] = tp_colorbars,
};

static const int ov23850_20fps[] = {
	20,
};

static const int ov23850_30fps[] = {
	30,
};

static const struct camera_common_frmfmt ov23850_frmfmt[] = {
	{{5632, 3168}, ov23850_30fps, 1, 0, OV23850_MODE_5632X3168},
};
#endif  /* __OV23850_I2C_TABLES__ */
